Files
ARTEX/notify/transport_test.go
T
Coff0xc c8b771881e fix(notify): dial notification targets directly
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.
2026-11-21 19:51:15 +00:00

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")
}
}