Mercurial > hg > nnchat
changeset 633:ce605ac8167a
Proxy handling stuff.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 22 Jun 2014 02:12:37 +0300 |
parents | 5b059a85cab8 |
children | 5269a8cdbd96 |
files | main.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/main.c Sat Jun 21 20:42:57 2014 +0300 +++ b/main.c Sun Jun 22 02:12:37 2014 +0300 @@ -59,7 +59,8 @@ int optPort = 8005, optProxyPort = 1080, optProxyType = TH_PROXY_NONE, - optProxyAuthType = TH_PROXY_AUTH_NONE; + optProxyAuthType = TH_PROXY_AUTH_NONE, + optProxyAddrType = TH_PROXY_ADDR_DOMAIN; int optUserColor = 0x000000; char *optServer = "chat.newbienudes.com", *optProxyServer = NULL, @@ -2226,7 +2227,9 @@ optProxyUserID = "James Bond"; if (th_conn_set_proxy(conn, optProxyType, optProxyPort, optProxyServer, optProxyAuthType) != THERR_OK || - th_conn_set_proxy_auth_user(conn, optProxyUserID, optProxyPassword) != THERR_OK) + th_conn_set_proxy_auth_user(conn, optProxyUserID, optProxyPassword) != THERR_OK || + th_conn_set_proxy_mode(conn, TH_PROXY_CMD_CONNECT) != THERR_OK || + th_conn_set_proxy_addr_type(conn, optProxyAddrType)) { errorMsg("Error setting proxy information.\n"); goto err_exit;