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

Method AddZone

x_net_proxy.go:142–150  ·  view source on GitHub ↗

AddZone specifies a DNS suffix that will use the bypass proxy. A zone of "example.com" matches "example.com" and all of its subdomains.

(zone string)

Source from the content-addressed store, hash-verified

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.
142func (p *proxy_PerHost) AddZone(zone string) {
143 if strings.HasSuffix(zone, ".") {
144 zone = zone[:len(zone)-1]
145 }
146 if !strings.HasPrefix(zone, ".") {
147 zone = "." + zone
148 }
149 p.bypassZones = append(p.bypassZones, zone)
150}
151
152// AddHost specifies a host name that will use the bypass proxy.
153func (p *proxy_PerHost) AddHost(host string) {

Callers 1

AddFromStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected