aboutsummaryrefslogtreecommitdiffstats
path: root/peer.cpp
diff options
context:
space:
mode:
authorsubtly <subtly@users.noreply.github.com>2015-03-23 01:39:56 +0800
committersubtly <subtly@users.noreply.github.com>2015-03-23 01:39:56 +0800
commit3d98932c1ee505fd937e9a56941b5a3d25cd65eb (patch)
treeeb29b73b02a0ee98280e936cf4d77f6f3caf424b /peer.cpp
parent96a32d19d52391aa455035bb88ce167e31163df2 (diff)
downloaddexon-solidity-3d98932c1ee505fd937e9a56941b5a3d25cd65eb.tar
dexon-solidity-3d98932c1ee505fd937e9a56941b5a3d25cd65eb.tar.gz
dexon-solidity-3d98932c1ee505fd937e9a56941b5a3d25cd65eb.tar.bz2
dexon-solidity-3d98932c1ee505fd937e9a56941b5a3d25cd65eb.tar.lz
dexon-solidity-3d98932c1ee505fd937e9a56941b5a3d25cd65eb.tar.xz
dexon-solidity-3d98932c1ee505fd937e9a56941b5a3d25cd65eb.tar.zst
dexon-solidity-3d98932c1ee505fd937e9a56941b5a3d25cd65eb.zip
NodeTable constructor requires and listens to explicit IP address instead of defaulting to 0.0.0.0 (all addresses).
Diffstat (limited to 'peer.cpp')
-rw-r--r--peer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/peer.cpp b/peer.cpp
index 9a68401e..3ad2e294 100644
--- a/peer.cpp
+++ b/peer.cpp
@@ -35,8 +35,8 @@ BOOST_AUTO_TEST_CASE(host)
auto oldLogVerbosity = g_logVerbosity;
g_logVerbosity = 10;
- NetworkPreferences host1prefs(30301, "127.0.0.1", true, true);
- NetworkPreferences host2prefs(30302, "127.0.0.1", true, true);
+ NetworkPreferences host1prefs(30301, "127.0.0.1", false, true);
+ NetworkPreferences host2prefs(30302, "127.0.0.1", false, true);
Host host1("Test", host1prefs);
host1.start();
@@ -62,7 +62,7 @@ BOOST_AUTO_TEST_CASE(save_nodes)
std::list<Host*> hosts;
for (auto i:{0,1,2,3,4,5})
{
- Host* h = new Host("Test", NetworkPreferences(30300 + i, "127.0.0.1", true, true));
+ Host* h = new Host("Test", NetworkPreferences(30300 + i, "127.0.0.1", false, true));
h->setIdealPeerCount(10);
// starting host is required so listenport is available
h->start();