瀏覽代碼

Fix for GHSA-j2hp-6m75-v4j4

Ben Aubin 6 月之前
父節點
當前提交
3d4fed6842
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
 	}