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)
| 134 | // this will only take effect if a literal IP address is dialed. A connection |
| 135 | // to a named host will never match. |
| 136 | func (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. |