MCPcopy
hub / github.com/gorilla/websocket / proxy_PerHost

Struct proxy_PerHost

x_net_proxy.go:32–39  ·  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

30// A PerHost directs connections to a default Dialer unless the host name
31// requested matches one of a number of exceptions.
32type proxy_PerHost struct {
33 def, bypass proxy_Dialer
34
35 bypassNetworks []*net.IPNet
36 bypassIPs []net.IP
37 bypassZones []string
38 bypassHosts []string
39}
40
41// NewPerHost returns a PerHost Dialer that directs connections to either
42// 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