# HG changeset patch # User Matti Hamalainen # Date 1308799894 -10800 # Node ID 83ae825bb8c1b7b4f79aff67131632b2dd071fee # Parent b54c8545dcb082181353a851bf0a8de8d67728a2 Add configuration section for proxy settings. diff -r b54c8545dcb0 -r 83ae825bb8c1 nnchat.c --- 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");