From f07cd202f9e67ba88c14b67fa2f004e6e9d7a6c5 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 7 Aug 2015 18:52:08 +0200 Subject: [PATCH] Fix for connecting to host without colon. --- libp2p/Network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (...) {