mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-25 09:20:53 +08:00
Cloning the default transport kept ProxyFromEnvironment. The loopback guard then saw the proxy address, so a link-local URL could still be fetched through that proxy. Notifications now set Proxy to nil and connect directly.
10 lines
221 B
Go
10 lines
221 B
Go
package notify
|
|
|
|
import "testing"
|
|
|
|
func TestNotifyTransportIgnoresEnvironmentProxy(t *testing.T) {
|
|
if notifyTransport.Proxy != nil {
|
|
t.Fatal("notification transport must dial the target, not an environment proxy")
|
|
}
|
|
}
|