mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-07 12:30:11 +02:00
b7735ecc00
- prevent dns plaintext manipulation both the periodic update and when running in cli mode - possibly higher reliability on poor connections versus UDP - drop `-dns` flag in update command - for now no configuration allowed since it makes everything rather complex
13 lines
146 B
Go
13 lines
146 B
Go
package resolver
|
|
|
|
import (
|
|
"net"
|
|
)
|
|
|
|
func newResolver(d Dialer) *net.Resolver {
|
|
return &net.Resolver{
|
|
PreferGo: true,
|
|
Dial: d.Dial,
|
|
}
|
|
}
|