diff options
Diffstat (limited to 'helper')
-rw-r--r-- | helper/darwin.go | 2 | ||||
-rw-r--r-- | helper/helper.go | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/helper/darwin.go b/helper/darwin.go index 733eaf1..33a69fc 100644 --- a/helper/darwin.go +++ b/helper/darwin.go @@ -106,7 +106,7 @@ func resetGatewaysTable(gateways []string) error { cmd := exec.Command(pfctl, "-a", bitmask_anchor, "-t", gateways_table, "-T", "delete") err := cmd.Run() if err != nil { - return err + log.Printf("Can't delete table: %v", err) } for _, gateway := range gateways { diff --git a/helper/helper.go b/helper/helper.go index 1b7033a..9f09e81 100644 --- a/helper/helper.go +++ b/helper/helper.go @@ -123,6 +123,7 @@ func firewallStartHandler(w http.ResponseWriter, r *http.Request) { if err != nil { log.Printf("Error starting firewall: %v", err) w.Write([]byte(err.Error())) + return } log.Println("Start firewall: firewall started") } |