Mercurial > hg > nnchat
changeset 636:6273c4ea6e51
Improve help.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 22 Jun 2014 06:25:16 +0300 |
parents | 43eee625021a |
children | 8c6b8cd42f62 |
files | main.c |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/main.c Sun Jun 22 06:19:45 2014 +0300 +++ b/main.c Sun Jun 22 06:25:16 2014 +0300 @@ -34,6 +34,7 @@ #define SET_PROFILE_PREFIX "http://www.newbienudes.com/profile/%s/" #define SET_NICK_SEPARATOR ':' +#define SET_PROXY_PORT 1080 #define SET_MAX_HISTORY (64) // Command history length #define SET_KEEPALIVE (15*60) // Ping/keepalive period in seconds @@ -57,7 +58,7 @@ /* Options */ int optPort = 8005, - optProxyPort = 1080, + optProxyPort = SET_PROXY_PORT, optProxyType = TH_PROXY_NONE, optProxyAuthType = TH_PROXY_AUTH_NONE, optProxyAddrType = TH_PROXY_ADDR_DOMAIN; @@ -142,11 +143,14 @@ "These can be set with the -P option as follows:\n" "\n" " -P <type>://[<userid>[:passwd]@]<host>[:<port>]\n" + " -P socks4://localhost:9000\n" + " -P socks5://foobar:pass@localhost\n" "\n" "Type can be socks4, socks4a or socks5. Only socks5\n" - "supports user/pass authentication.\n" + "supports user/pass authentication. Default port is %d.\n" "\n" - "Supported rooms (for option '-r'):\n"); + "Supported rooms (for option '-r'):\n", + SET_PROXY_PORT); for (i = 0; i < nn_room_data_n; i++) { @@ -155,6 +159,8 @@ nn_room_data[i].desc, nn_room_data[i].port); } + + printf("\n"); }