Mercurial > hg > nnchat
changeset 353:83ae825bb8c1
Add configuration section for proxy settings.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 23 Jun 2011 06:31:34 +0300 |
parents | b54c8545dcb0 |
children | c01e42fc9adb |
files | nnchat.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/nnchat.c Thu Jun 23 06:28:40 2011 +0300 +++ b/nnchat.c Thu Jun 23 06:31:34 2011 +0300 @@ -1325,6 +1325,15 @@ th_cfg_add_section(&cfg, "server", tmpcfg); tmpcfg = NULL; + th_cfg_add_comment(&tmpcfg, "Proxy server type (0 = none, 1 = SOCKS 4, 2 = SOCKS 4A"); + th_cfg_add_int(&tmpcfg, "port", &optProxyType, optProxyType); + th_cfg_add_comment(&tmpcfg, "Proxy server host name"); + th_cfg_add_string(&tmpcfg, "host", &optProxyServer, optProxyServer); + th_cfg_add_comment(&tmpcfg, "Proxy port, 1080 is the standard SOCKS port"); + th_cfg_add_int(&tmpcfg, "port", &optProxyPort, optProxyPort); + th_cfg_add_section(&cfg, "proxy", tmpcfg); + + tmpcfg = NULL; th_cfg_add_comment(&tmpcfg, "Enable logging"); th_cfg_add_bool(&tmpcfg, "enable", &optLogEnable, optLogEnable); th_cfg_add_comment(&tmpcfg, "Log filename format");