Explorar o código

Fix for GHSA-j2hp-6m75-v4j4

Ben Aubin hai 6 meses
pai
achega
3d4fed6842
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      security/source.go

+ 1 - 1
security/source.go

@@ -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
 	}