Skip to content

Commit 42fcea4

Browse files
committed
get original codes back
1 parent a66697f commit 42fcea4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

cni/network/multitenancy.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,9 @@ func (m *Multitenancy) SetupRoutingForMultitenancy(
204204
)
205205
}
206206
}
207-
// Restore DNS SNAT routing if enabled
208207
if epInfo.EnableSnatForDns {
209-
if err := m.addSnatForDNS(epInfo, result); err != nil {
210-
logger.Error("failed adding SNAT for DNS",
211-
zap.Error(err),
212-
)
213-
}
208+
logger.Info("add SNAT for DNS enabled")
209+
addSnatForDNS(cnsNetworkConfig.LocalIPConfiguration.GatewayIPAddress, epInfo, result)
214210
}
215211
}
216212

0 commit comments

Comments
 (0)