Jelajahi Sumber

don't skip connections from the host network namespace to the loopback IPs

Nikolay Sivko 3 tahun lalu
induk
melakukan
afdfe9ed6f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      containers/container.go

+ 1 - 1
containers/container.go

@@ -484,7 +484,7 @@ func (c *Container) onConnectionOpen(pid uint32, fd uint64, src, dst netaddr.IPP
 			break
 		}
 	}
-	if !whitelisted && !common.IsIpPrivate(dst.IP()) {
+	if !whitelisted && !common.IsIpPrivate(dst.IP()) && !dst.IP().IsLoopback() {
 		return
 	}
 	c.lock.Lock()