A PerHost directs connections to a default Dialer unless the host name requested matches one of a number of exceptions.
| 30 | // A PerHost directs connections to a default Dialer unless the host name |
| 31 | // requested matches one of a number of exceptions. |
| 32 | type proxy_PerHost struct { |
| 33 | def, bypass proxy_Dialer |
| 34 | |
| 35 | bypassNetworks []*net.IPNet |
| 36 | bypassIPs []net.IP |
| 37 | bypassZones []string |
| 38 | bypassHosts []string |
| 39 | } |
| 40 | |
| 41 | // NewPerHost returns a PerHost Dialer that directs connections to either |
| 42 | // defaultDialer or bypass, depending on whether the connection matches one of |
nothing calls this directly
no outgoing calls
no test coverage detected