summaryrefslogtreecommitdiff
path: root/src/SocketCore.cc
diff options
context:
space:
mode:
authorNagi5Yeq <wu@x-nagi.com>2021-02-05 16:27:05 +0800
committerNagi5Yeq <wu@x-nagi.com>2021-02-05 16:27:05 +0800
commitff92e2f4e0724db321c9cbeb34ab5d78ba1af036 (patch)
tree6e473c39e705743340e3fcbee3df4c707e69dcf4 /src/SocketCore.cc
parent32ebcdbc8290474b63d78d357847eebea8cb9ad9 (diff)
sending ipv6 address is not necessary because the asynchronous resolution problem is fixedrearrange-args
Diffstat (limited to 'src/SocketCore.cc')
-rw-r--r--src/SocketCore.cc16
1 files changed, 0 insertions, 16 deletions
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