diff options
Diffstat (limited to 'middleware/proxy')
-rw-r--r-- | middleware/proxy/dns.go | 1 | ||||
-rw-r--r-- | middleware/proxy/lookup.go | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/middleware/proxy/dns.go b/middleware/proxy/dns.go index 157d97992..c1c0ad078 100644 --- a/middleware/proxy/dns.go +++ b/middleware/proxy/dns.go @@ -15,6 +15,7 @@ type dnsEx struct { Options } +// Options define the options understood by dns.Exchange. type Options struct { ForceTCP bool // If true use TCP for upstream no matter what } diff --git a/middleware/proxy/lookup.go b/middleware/proxy/lookup.go index 370307cc1..e871774cf 100644 --- a/middleware/proxy/lookup.go +++ b/middleware/proxy/lookup.go @@ -17,7 +17,7 @@ func NewLookup(hosts []string) Proxy { return NewLookupWithOption(hosts, Options{}) } -// NewLookupWithForcedProto process creates a simple round robin forward with potentially forced proto for upstream. +// NewLookupWithOption process creates a simple round robin forward with potentially forced proto for upstream. func NewLookupWithOption(hosts []string, opts Options) Proxy { p := Proxy{Next: nil} |