mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-06 14:47:35 +03:00
Typo
This commit is contained in:
parent
068c8e70f2
commit
0e8d1a941b
1 changed files with 4 additions and 4 deletions
|
@ -29,7 +29,7 @@ const (
|
||||||
DefaultFallbackResolver = "9.9.9.9:53"
|
DefaultFallbackResolver = "9.9.9.9:53"
|
||||||
DefaultKeepAlive = 5 * time.Second
|
DefaultKeepAlive = 5 * time.Second
|
||||||
DefaultTimeout = 30 * time.Second
|
DefaultTimeout = 30 * time.Second
|
||||||
SystemRresolverIPTTL = 24 * time.Hour
|
SystemResolverIPTTL = 24 * time.Hour
|
||||||
MinResolverIPTTL = 8 * time.Hour
|
MinResolverIPTTL = 8 * time.Hour
|
||||||
ExpiredCachedIPGraceTTL = 5 * time.Minute
|
ExpiredCachedIPGraceTTL = 5 * time.Minute
|
||||||
)
|
)
|
||||||
|
@ -70,7 +70,7 @@ func NewXTransport() *XTransport {
|
||||||
timeout: DefaultTimeout,
|
timeout: DefaultTimeout,
|
||||||
fallbackResolver: DefaultFallbackResolver,
|
fallbackResolver: DefaultFallbackResolver,
|
||||||
mainProto: "",
|
mainProto: "",
|
||||||
ignoreSystemDNS: false,
|
ignoreSystemDNS: true,
|
||||||
useIPv4: true,
|
useIPv4: true,
|
||||||
useIPv6: false,
|
useIPv6: false,
|
||||||
tlsDisableSessionTickets: 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) {
|
func (xTransport *XTransport) resolveUsingSystem(host string) (ip net.IP, ttl time.Duration, err error) {
|
||||||
ttl = SystemRresolverIPTTL
|
ttl = SystemResolverIPTTL
|
||||||
var foundIPs []string
|
var foundIPs []string
|
||||||
foundIPs, err = net.LookupHost(host)
|
foundIPs, err = net.LookupHost(host)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue