Skip to content

Commit

Permalink
Fix p2p port
Browse files Browse the repository at this point in the history
  • Loading branch information
Bzlcoin committed Feb 2, 2018
1 parent 141e49a commit 8b87509
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ std::string HelpMessage()
" -socks=<n> " + _("Select the version of socks proxy to use (4-5, default: 5)") + "\n" +
" -tor=<ip:port> " + _("Use proxy to reach tor hidden services (default: same as -proxy)") + "\n"
" -dns " + _("Allow DNS lookups for -addnode, -seednode and -connect") + "\n" +
" -port=<port> " + _("Listen for connections on <port> (default: 77777 or testnet: 77766)") + "\n" +
" -port=<port> " + _("Listen for connections on <port> (default: 27776 or testnet: 27777)") + "\n" +
" -maxconnections=<n> " + _("Maintain at most <n> connections to peers (default: 125)") + "\n" +
" -addnode=<ip> " + _("Add a node to connect to and attempt to keep the connection open") + "\n" +
" -connect=<ip> " + _("Connect only to the specified node(s)") + "\n" +
Expand Down
2 changes: 1 addition & 1 deletion src/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
extern bool fTestNet;
static inline unsigned short GetDefaultPort(const bool testnet = fTestNet)
{
return testnet ? 77766 : 77777;
return testnet ? 27776 : 27777;
}


Expand Down

0 comments on commit 8b87509

Please sign in to comment.