From ca9a07dc2ff7a9048a4294ed4c93bae70d05891a Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Fri, 10 Oct 2014 11:43:40 +0200 Subject: [PATCH] Exception fix. --- libp2p/Host.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/Host.cpp b/libp2p/Host.cpp index 5a6358b43..bb9901428 100644 --- a/libp2p/Host.cpp +++ b/libp2p/Host.cpp @@ -716,7 +716,7 @@ void Host::restoreNodes(bytesConstRef _b) if (!m_nodes.count(id)) { bi::tcp::endpoint ep; - if (i[0].size() == 4) + if (i[0].itemCount() == 4) ep = bi::tcp::endpoint(bi::address_v4(i[0].toArray()), i[1].toInt()); else ep = bi::tcp::endpoint(bi::address_v6(i[0].toArray()), i[1].toInt());