Fix for GHSA-j2hp-6m75-v4j4

This commit is contained in:
Ben Aubin
2025-01-19 11:11:57 -08:00
parent 0f37d62fd8
commit d6255b5700

View File

@@ -41,7 +41,7 @@ func VerifySourceNetwork(addr string) error {
return ErrInvalidSourceAddress
}
if !config.AllowLoopbackSourceAddresses && ip.IsLoopback() {
if !config.AllowLoopbackSourceAddresses && (ip.IsLoopback() || ip.IsUnspecified()) {
return ErrSourceAddressNotAllowed
}