AddHost specifies a host name that will use the bypass proxy.
(host string)
| 151 | |
| 152 | // AddHost specifies a host name that will use the bypass proxy. |
| 153 | func (p *proxy_PerHost) AddHost(host string) { |
| 154 | if strings.HasSuffix(host, ".") { |
| 155 | host = host[:len(host)-1] |
| 156 | } |
| 157 | p.bypassHosts = append(p.bypassHosts, host) |
| 158 | } |
| 159 | |
| 160 | // A Dialer is a means to establish a connection. |
| 161 | type proxy_Dialer interface { |