Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hknutzen committed Feb 23, 2024
1 parent 5136ede commit d7d2d4a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions go/pkg/pass1/nat.go
Original file line number Diff line number Diff line change
Expand Up @@ -935,9 +935,6 @@ func (c *spoc) checkNatCompatibility() {
for _, n := range c.allNetworks {
check := func(obj netObj) {
nat := obj.nat
if nat == nil {
return
}
for _, tag := range sorted.Keys(nat) {
objIP := nat[tag]
natNet := n.nat[tag]
Expand Down Expand Up @@ -976,13 +973,10 @@ func (c *spoc) checkInterfacesWithDynamicNat() {
continue
}
for _, intf := range n.interfaces {
intfNat := intf.nat

// Interface has static translation,
if _, found := intfNat[tag]; found {
if _, found := intf.nat[tag]; found {
continue
}

r := intf.router
if !r.needProtect {
continue
Expand Down

0 comments on commit d7d2d4a

Please sign in to comment.