MCPcopy Create free account
hub / github.com/gorilla/websocket / AddNetwork

Method AddNetwork

x_net_proxy.go:136–138  ·  view source on GitHub ↗

AddNetwork specifies an IP range that will use the bypass proxy. Note that this will only take effect if a literal IP address is dialed. A connection to a named host will never match.

(net *net.IPNet)

Source from the content-addressed store, hash-verified

134// this will only take effect if a literal IP address is dialed. A connection
135// to a named host will never match.
136func (p *proxy_PerHost) AddNetwork(net *net.IPNet) {
137 p.bypassNetworks = append(p.bypassNetworks, net)
138}
139
140// AddZone specifies a DNS suffix that will use the bypass proxy. A zone of
141// "example.com" matches "example.com" and all of its subdomains.

Callers 1

AddFromStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected