Skip to content

Commit 3a0da2b

Browse files
authored
fix build break due to commit 05d03e7 (cloudnativelabs#817)
1 parent 52e338d commit 3a0da2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/controllers/proxy/network_services_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ func (nsc *NetworkServicesController) setupIpvsFirewall() error {
507507
}
508508

509509
// config.IpvsPermitAll: true then create INPUT/KUBE-ROUTER-SERVICE Chain creation else return
510-
if !config.ipvsPermitAll {
510+
if !nsc.ipvsPermitAll {
511511
return nil
512512
}
513513

@@ -519,7 +519,7 @@ func (nsc *NetworkServicesController) setupIpvsFirewall() error {
519519
args = []string{"-m", "comment", "--comment", comment,
520520
"-m", "set", "--match-set", ipvsServicesIPSetName, "dst,dst",
521521
"-j", "ACCEPT"}
522-
exists, err := iptablesCmdHandler.Exists("filter", ipvsFirewallChainName, args...)
522+
exists, err = iptablesCmdHandler.Exists("filter", ipvsFirewallChainName, args...)
523523
if err != nil {
524524
return fmt.Errorf("Failed to run iptables command: %s", err.Error())
525525
}

0 commit comments

Comments
 (0)