diff --git a/libp2p/Network.cpp b/libp2p/Network.cpp index 7a3b50385..b44ac1e0a 100644 --- a/libp2p/Network.cpp +++ b/libp2p/Network.cpp @@ -216,7 +216,7 @@ bi::tcp::endpoint Network::resolveHost(string const& _addr) int givenPort; try { - givenPort = stoi(split[1]); + givenPort = stoi(split.at(1)); } catch (...) {