Forráskód Böngészése

Fix for GHSA-j2hp-6m75-v4j4

Ben Aubin 6 hónapja
szülő
commit
3d4fed6842
1 módosított fájl, 1 hozzáadás és 1 törlés
  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
 	}