![]() ContainsIPv4Loopback() claimed that "::/0" contains IPv4 loopback IPs (on the theory that listening on "::/0" will listen on "0.0.0.0/0" as well and thus include IPv4 loopback). But its sole caller (the iptables proxier) doesn't use listen() to accept connections, so this theory was completely mistaken; if you passed, eg, `--nodeport-addresses 192.168.0.0/0,::/0`, then it would not create any rule that accepted nodeport connections on 127.0.0.1, but it would nonetheless end up setting route_localnet=1 because ContainsIPv4Loopback() claimed it needed to. Fix this. |
||
---|---|---|
.. | ||
iptables | ||
testing | ||
endpoints_test.go | ||
endpoints.go | ||
network.go | ||
nodeport_addresses_test.go | ||
nodeport_addresses.go | ||
utils_test.go | ||
utils.go |