From 0e8d1a941be0312364f50a3cbe3b59acb64ccac6 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 17 Nov 2019 20:30:00 +0100 Subject: [PATCH] Typo --- dnscrypt-proxy/xtransport.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dnscrypt-proxy/xtransport.go b/dnscrypt-proxy/xtransport.go index ca7e4c95..42397938 100644 --- a/dnscrypt-proxy/xtransport.go +++ b/dnscrypt-proxy/xtransport.go @@ -29,8 +29,8 @@ const ( DefaultFallbackResolver = "9.9.9.9:53" DefaultKeepAlive = 5 * time.Second DefaultTimeout = 30 * time.Second - SystemRresolverIPTTL = 24 * time.Hour - MinResolverIPTTL = 8 * time.Hour + SystemResolverIPTTL = 24 * time.Hour + MinResolverIPTTL = 8 * time.Hour ExpiredCachedIPGraceTTL = 5 * time.Minute ) @@ -70,7 +70,7 @@ func NewXTransport() *XTransport { timeout: DefaultTimeout, fallbackResolver: DefaultFallbackResolver, mainProto: "", - ignoreSystemDNS: false, + ignoreSystemDNS: true, useIPv4: true, useIPv6: false, tlsDisableSessionTickets: false, @@ -173,7 +173,7 @@ func (xTransport *XTransport) rebuildTransport() { } func (xTransport *XTransport) resolveUsingSystem(host string) (ip net.IP, ttl time.Duration, err error) { - ttl = SystemRresolverIPTTL + ttl = SystemResolverIPTTL var foundIPs []string foundIPs, err = net.LookupHost(host) if err != nil {