aboutsummaryrefslogtreecommitdiff
path: root/src/test/net_tests.cpp
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2016-05-31 13:05:52 -0400
committerCory Fields <cory-nospam-@coryfields.com>2016-07-31 13:24:07 -0400
commit31d6b1d5f0414d8b356d8cb9c99961d8a04d6c0a (patch)
treee1044a96d479c66c639528276d54f674b5103ae8 /src/test/net_tests.cpp
parent6caf3ee061a86d89b965dc8a61a95d1f34015805 (diff)
net: Split resolving out of CNetAddr
Diffstat (limited to 'src/test/net_tests.cpp')
-rw-r--r--src/test/net_tests.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/net_tests.cpp b/src/test/net_tests.cpp
index d005d6a163..511073499e 100644
--- a/src/test/net_tests.cpp
+++ b/src/test/net_tests.cpp
@@ -52,7 +52,9 @@ public:
s << nUBuckets;
CAddress addr = CAddress(CService("252.1.1.1", 7777), NODE_NONE);
- CAddrInfo info = CAddrInfo(addr, CNetAddr("252.2.2.2"));
+ CNetAddr resolved;
+ LookupHost("252.2.2.2", resolved, false);
+ CAddrInfo info = CAddrInfo(addr, resolved);
s << info;
}
};