Config option for custom DNS resolver

This commit is contained in:
2025-04-23 20:49:41 +08:00
parent a7ad598fc6
commit f8eb08f4cc
3 changed files with 15 additions and 1 deletions

View File

@@ -4,4 +4,5 @@ type Config struct {
ListenAddress string // Address to listen on, passed to net.Listen
ListenType string // Type of network to listen on, passed to net.Listen. One of tcp, tcp4 and tcp6
DNSResolver string // Address to send UDP & TCP DNS requests to. If set, the Go resolver will also be forced.
}