Explorar el Código

Fix for GHSA-j2hp-6m75-v4j4

Ben Aubin hace 6 meses
padre
commit
3d4fed6842
Se han modificado 1 ficheros con 1 adiciones y 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
 	}