We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cfc3bc commit 528fb73Copy full SHA for 528fb73
pkg/daemon/config.go
@@ -284,10 +284,9 @@ func (config *Configuration) initNicConfig(nicBridgeMappings map[string]string)
284
continue
285
}
286
287
- // exclude link-local and localhost addresses
+ // exclude link-local and loopback addresses
288
ipStr := strings.Split(addr.String(), "/")[0]
289
- _, localhost, _ := net.ParseCIDR("127.0.0.0/8")
290
- if ip := net.ParseIP(ipStr); ip == nil || ip.IsLinkLocalUnicast() || localhost.Contains(ip) {
+ if ip := net.ParseIP(ipStr); ip == nil || ip.IsLinkLocalUnicast() || ip.IsLoopback() {
291
292
293
if len(srcIPs) == 0 || slices.Contains(srcIPs, ipStr) {
0 commit comments