AddIP specifies an IP address 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 an IP.
(ip net.IP)
| 127 | // this will only take effect if a literal IP address is dialed. A connection |
| 128 | // to a named host will never match an IP. |
| 129 | func (p *proxy_PerHost) AddIP(ip net.IP) { |
| 130 | p.bypassIPs = append(p.bypassIPs, ip) |
| 131 | } |
| 132 | |
| 133 | // AddNetwork specifies an IP range that will use the bypass proxy. Note that |
| 134 | // this will only take effect if a literal IP address is dialed. A connection |