Browse Source

Merge pull request #2752 from chriseth/fix_hostParsing

Fix for connecting to host without colon.
cl-refactor
Gav Wood 10 years ago
parent
commit
11647d3b1f
  1. 2
      libp2p/Network.cpp

2
libp2p/Network.cpp

@ -216,7 +216,7 @@ bi::tcp::endpoint Network::resolveHost(string const& _addr)
int givenPort; int givenPort;
try try
{ {
givenPort = stoi(split[1]); givenPort = stoi(split.at(1));
} }
catch (...) catch (...)
{ {

Loading…
Cancel
Save