Skip to content

Commit afdfe9e

Browse files
committed
don't skip connections from the host network namespace to the loopback IPs
1 parent 02a3aeb commit afdfe9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

containers/container.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ func (c *Container) onConnectionOpen(pid uint32, fd uint64, src, dst netaddr.IPP
484484
break
485485
}
486486
}
487-
if !whitelisted && !common.IsIpPrivate(dst.IP()) {
487+
if !whitelisted && !common.IsIpPrivate(dst.IP()) && !dst.IP().IsLoopback() {
488488
return
489489
}
490490
c.lock.Lock()

0 commit comments

Comments
 (0)