Skip to content

Commit b199dd8

Browse files
committed
update the comment of NodeIPs function
1 parent 322b2fe commit b199dd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/proxy/ipvs/netlink_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func (h *netlinkHandle) ListBindAddress(devName string) ([]string, error) {
135135
// 172.17.0.1 dev docker0 scope host src 172.17.0.1
136136
// 192.168.122.1 dev virbr0 scope host src 192.168.122.1
137137
// Then cut the unique src IP fields,
138-
// --> result set: [10.0.0.1, 10.0.0.10, 10.0.0.252, 100.106.89.164, 127.0.0.1, 192.168.122.1]
138+
// --> result set: [10.0.0.1, 10.0.0.10, 10.0.0.252, 100.106.89.164, 127.0.0.1, 172.17.0.1, 192.168.122.1]
139139

140140
// If dev is specified, it's equivalent to exec:
141141
// $ ip route show table local type local proto kernel dev kube-ipvs0

pkg/proxy/ipvs/proxier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ type realIPGetter struct {
283283
// 172.17.0.1 dev docker0 scope host src 172.17.0.1
284284
// 192.168.122.1 dev virbr0 scope host src 192.168.122.1
285285
// Then filter out dev==kube-ipvs0, and cut the unique src IP fields,
286-
// Node IP set: [100.106.89.164, 127.0.0.1, 192.168.122.1]
286+
// Node IP set: [100.106.89.164, 127.0.0.1, 172.17.0.1, 192.168.122.1]
287287
func (r *realIPGetter) NodeIPs() (ips []net.IP, err error) {
288288
// Pass in empty filter device name for list all LOCAL type addresses.
289289
nodeAddress, err := r.nl.GetLocalAddresses("", DefaultDummyDevice)

0 commit comments

Comments
 (0)