File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
pkg/guestagent/kubernetesservice Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ func (s *ServiceWatcher) GetPorts() []Entry {
149
149
150
150
entries = append (entries , Entry {
151
151
Protocol : Protocol (strings .ToLower (string (portEntry .Protocol ))),
152
- IP : net .ParseIP ( "0.0.0.0" ) ,
152
+ IP : net .IPv4zero ,
153
153
Port : uint16 (port ),
154
154
})
155
155
}
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ func TestGetPorts(t *testing.T) {
63
63
},
64
64
want : []Entry {{
65
65
Protocol : TCP ,
66
- IP : net .ParseIP ( "0.0.0.0" ) ,
66
+ IP : net .IPv4zero ,
67
67
Port : 8080 ,
68
68
}},
69
69
},
@@ -85,7 +85,7 @@ func TestGetPorts(t *testing.T) {
85
85
},
86
86
want : []Entry {{
87
87
Protocol : TCP ,
88
- IP : net .ParseIP ( "0.0.0.0" ) ,
88
+ IP : net .IPv4zero ,
89
89
Port : 8081 ,
90
90
}},
91
91
},
You can’t perform that action at this time.
0 commit comments