Skip to content

Commit 8024c9f

Browse files
.
1 parent 2d55c28 commit 8024c9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cns/restserver/internalapi_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (service *HTTPRestService) programSNATRules(req *cns.CreateNetworkContainer
6868

6969
// use any secondary ip + the nnc prefix length to get an iptables rule to allow dns and imds traffic from the pods
7070
for _, v := range req.SecondaryIPConfigs {
71-
// check if the ip address is IPv4
71+
// check if the ip address is IPv4. A check is required because DNS and IMDS do not have IPv6 addresses. Since support currently exists only for IPv4, other scenarios are skipped.
7272
if net.ParseIP(v.IPAddress).To4() == nil {
7373
// skip if the ip address is not IPv4
7474
continue

0 commit comments

Comments
 (0)