A PerHost directs connections to a default Dialer unless the host name requested matches one of a number of exceptions.
| 14 | // A PerHost directs connections to a default Dialer unless the host name |
| 15 | // requested matches one of a number of exceptions. |
| 16 | type PerHost struct { |
| 17 | def, bypass Dialer |
| 18 | |
| 19 | bypassNetworks []*net.IPNet |
| 20 | bypassIPs []net.IP |
| 21 | bypassZones []string |
| 22 | bypassHosts []string |
| 23 | } |
| 24 | |
| 25 | // NewPerHost returns a PerHost Dialer that directs connections to either |
| 26 | // defaultDialer or bypass, depending on whether the connection matches one of |
nothing calls this directly
no outgoing calls
no test coverage detected