Skip to content

Commit

Permalink
default port: 9050/9150.
Browse files Browse the repository at this point in the history
  • Loading branch information
mx4 committed Feb 4, 2014
1 parent 944e743 commit 777029b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,13 @@ btc_init(struct secure_area *passphrase,

if (config_getbool(btc->config, FALSE, "network.useSocks5")) {
btc->socks5_proxy = config_getstring(btc->config, "localhost", "socks5.hostname");
btc->socks5_port = config_getint64(btc->config, 9050, "socks5.port");
btc->socks5_port = config_getint64(btc->config,
#ifdef linux
9050,
#else
9150,
#endif
"socks5.port");
Log(LGPFX" Using SOCKS5 proxy %s:%u.\n",
btc->socks5_proxy, btc->socks5_port);
}
Expand Down

0 comments on commit 777029b

Please sign in to comment.