From ff92e2f4e0724db321c9cbeb34ab5d78ba1af036 Mon Sep 17 00:00:00 2001 From: Nagi5Yeq Date: Fri, 5 Feb 2021 16:27:05 +0800 Subject: sending ipv6 address is not necessary because the asynchronous resolution problem is fixed --- src/SocketCore.cc | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/SocketCore.cc') diff --git a/src/SocketCore.cc b/src/SocketCore.cc index b82ba0b3..e235f512 100644 --- a/src/SocketCore.cc +++ b/src/SocketCore.cc @@ -1570,9 +1570,6 @@ bool verifyHostname(const std::string& hostname, namespace { bool ipv4AddrConfigured = true; bool ipv6AddrConfigured = true; - -bool hasGlobalIpv6Addr = false; -char globalIpv6Addr[NI_MAXHOST]; } // namespace #ifdef __MINGW32__ @@ -1697,11 +1694,6 @@ void checkAddrconfig() !IN6_IS_ADDR_LINKLOCAL(&ad.in6.sin6_addr)) { ipv6AddrConfigured = true; found = true; - if (!hasGlobalIpv6Addr && - inetNtop(AF_INET6, &ad.in6.sin6_addr, globalIpv6Addr, - sizeof(globalIpv6Addr)) == 0) { - hasGlobalIpv6Addr = true; - } } break; } @@ -1731,14 +1723,6 @@ bool getIPv4AddrConfigured() { return ipv4AddrConfigured; } bool getIPv6AddrConfigured() { return ipv6AddrConfigured; } -const char* getGlobalIpv6Addr() -{ - if (hasGlobalIpv6Addr == true) { - return globalIpv6Addr; - } - return nullptr; -} - } // namespace net } // namespace aria2 -- cgit