From 3d5c76800d7d041368eeca34b4bbe5099f35a964 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 3 Dec 2016 16:14:59 +0900 Subject: Take into account address family when resolving DHT node address --- src/DHTEntryPointNameResolveCommand.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/DHTEntryPointNameResolveCommand.h') diff --git a/src/DHTEntryPointNameResolveCommand.h b/src/DHTEntryPointNameResolveCommand.h index 1c70639e..3e131833 100644 --- a/src/DHTEntryPointNameResolveCommand.h +++ b/src/DHTEntryPointNameResolveCommand.h @@ -72,6 +72,8 @@ private: std::deque> entryPoints_; + int family_; + int numSuccess_; bool bootstrapEnabled_; @@ -85,7 +87,7 @@ private: public: DHTEntryPointNameResolveCommand( - cuid_t cuid, DownloadEngine* e, + cuid_t cuid, DownloadEngine* e, int family, const std::vector>& entryPoints); virtual ~DHTEntryPointNameResolveCommand(); -- cgit