MCPcopy
hub / github.com/golang/net / PerHost

Struct PerHost

proxy/per_host.go:16–23  ·  view source on GitHub ↗

A PerHost directs connections to a default Dialer unless the host name requested matches one of a number of exceptions.

Source from the content-addressed store, hash-verified

14// A PerHost directs connections to a default Dialer unless the host name
15// requested matches one of a number of exceptions.
16type PerHost struct {
17 def, bypass Dialer
18
19 bypassNetworks []*net.IPNet
20 bypassIPs []net.IP
21 bypassZones []string
22 bypassHosts []string
23}
24
25// NewPerHost returns a PerHost Dialer that directs connections to either
26// defaultDialer or bypass, depending on whether the connection matches one of

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected