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 {
149149
150150 entries = append (entries , Entry {
151151 Protocol : Protocol (strings .ToLower (string (portEntry .Protocol ))),
152- IP : net .ParseIP ( "0.0.0.0" ) ,
152+ IP : net .IPv4zero ,
153153 Port : uint16 (port ),
154154 })
155155 }
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ func TestGetPorts(t *testing.T) {
6363 },
6464 want : []Entry {{
6565 Protocol : TCP ,
66- IP : net .ParseIP ( "0.0.0.0" ) ,
66+ IP : net .IPv4zero ,
6767 Port : 8080 ,
6868 }},
6969 },
@@ -85,7 +85,7 @@ func TestGetPorts(t *testing.T) {
8585 },
8686 want : []Entry {{
8787 Protocol : TCP ,
88- IP : net .ParseIP ( "0.0.0.0" ) ,
88+ IP : net .IPv4zero ,
8989 Port : 8081 ,
9090 }},
9191 },
You can’t perform that action at this time.
0 commit comments