Mercurial > hg > nnchat
comparison nnchat.c @ 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 |
comparison
equal
deleted
inserted
replaced
352:b54c8545dcb0 | 353:83ae825bb8c1 |
---|---|
1321 th_cfg_add_comment(&tmpcfg, "Chat server hostname or IP address"); | 1321 th_cfg_add_comment(&tmpcfg, "Chat server hostname or IP address"); |
1322 th_cfg_add_string(&tmpcfg, "host", &optServer, optServer); | 1322 th_cfg_add_string(&tmpcfg, "host", &optServer, optServer); |
1323 th_cfg_add_comment(&tmpcfg, "Default port to connect to (8005 = main room, 8003 = passion pit)"); | 1323 th_cfg_add_comment(&tmpcfg, "Default port to connect to (8005 = main room, 8003 = passion pit)"); |
1324 th_cfg_add_int(&tmpcfg, "port", &optPort, optPort); | 1324 th_cfg_add_int(&tmpcfg, "port", &optPort, optPort); |
1325 th_cfg_add_section(&cfg, "server", tmpcfg); | 1325 th_cfg_add_section(&cfg, "server", tmpcfg); |
1326 | |
1327 tmpcfg = NULL; | |
1328 th_cfg_add_comment(&tmpcfg, "Proxy server type (0 = none, 1 = SOCKS 4, 2 = SOCKS 4A"); | |
1329 th_cfg_add_int(&tmpcfg, "port", &optProxyType, optProxyType); | |
1330 th_cfg_add_comment(&tmpcfg, "Proxy server host name"); | |
1331 th_cfg_add_string(&tmpcfg, "host", &optProxyServer, optProxyServer); | |
1332 th_cfg_add_comment(&tmpcfg, "Proxy port, 1080 is the standard SOCKS port"); | |
1333 th_cfg_add_int(&tmpcfg, "port", &optProxyPort, optProxyPort); | |
1334 th_cfg_add_section(&cfg, "proxy", tmpcfg); | |
1326 | 1335 |
1327 tmpcfg = NULL; | 1336 tmpcfg = NULL; |
1328 th_cfg_add_comment(&tmpcfg, "Enable logging"); | 1337 th_cfg_add_comment(&tmpcfg, "Enable logging"); |
1329 th_cfg_add_bool(&tmpcfg, "enable", &optLogEnable, optLogEnable); | 1338 th_cfg_add_bool(&tmpcfg, "enable", &optLogEnable, optLogEnable); |
1330 th_cfg_add_comment(&tmpcfg, "Log filename format"); | 1339 th_cfg_add_comment(&tmpcfg, "Log filename format"); |