diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2009-07-16 20:35:56 -0400 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2009-07-16 20:35:56 -0400 |
commit | c5440a6b044de78bee086d2527cd067ea99f546b (patch) | |
tree | b1c0bae9d80044c902614c7e4b275298d55cfb39 /src/dns.c | |
parent | 515cd053baecf09a50ba4dabf6c422425d9eccbc (diff) |
Minor cleanups
Diffstat (limited to 'src/dns.c')
-rw-r--r-- | src/dns.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -87,7 +87,6 @@ static GDnsCache *dns_cache; static int dns_cache_size, dns_cache_size_max; static GDnsQueue *dns_queue; static int dns_queue_size, dns_queue_size_max; -static bool_t ipv6_enabled; /* ---------------------------------------------------------------------- @@ -200,16 +199,14 @@ void a_Dns_init(void) #endif } - /* IPv6 test */ - ipv6_enabled = FALSE; #ifdef ENABLE_IPV6 + /* IPv6 test */ { /* If the IPv6 address family is not available there is no point wasting time trying to connect to v6 addresses. */ int fd = socket(AF_INET6, SOCK_STREAM, 0); if (fd >= 0) { close(fd); - ipv6_enabled = TRUE; } } #endif |