NewPerHost returns a PerHost Dialer that directs connections to either defaultDialer or bypass, depending on whether the connection matches one of the configured rules.
(defaultDialer, bypass proxy_Dialer)
| 42 | // defaultDialer or bypass, depending on whether the connection matches one of |
| 43 | // the configured rules. |
| 44 | func proxy_NewPerHost(defaultDialer, bypass proxy_Dialer) *proxy_PerHost { |
| 45 | return &proxy_PerHost{ |
| 46 | def: defaultDialer, |
| 47 | bypass: bypass, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | // Dial connects to the address addr on the given network through either |
| 52 | // defaultDialer or bypass. |
no outgoing calls
no test coverage detected
searching dependent graphs…