diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-12-16 15:17:34 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-12-16 15:17:34 +0100 |
commit | 25a905ed7775ca8ecc12de158ff74d1e7447db17 (patch) | |
tree | 33e09ff761962cadde65c91dea5ab7f435b6ac12 /pkg/helper/darwin.go | |
parent | 66f3e3c57e54644c59caab987fd5bda5cae0ee0b (diff) |
more fix
Diffstat (limited to 'pkg/helper/darwin.go')
-rw-r--r-- | pkg/helper/darwin.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/helper/darwin.go b/pkg/helper/darwin.go index 0cbc1bc..2db92a5 100644 --- a/pkg/helper/darwin.go +++ b/pkg/helper/darwin.go @@ -36,6 +36,7 @@ import ( "path/filepath" "strconv" "strings" + "time" "github.com/sevlyar/go-daemon" ) @@ -136,7 +137,7 @@ func firewallStop() error { /* TODO return error if different from anchor not exists */ /*return errors.New("Error while stopping firewall")*/ } - for i := range [50]int{} { + for _ = range [50]int{} { if firewallIsUp() { log.Printf("Firewall still up, waiting...") time.Sleep(200 * time.Millisecond) |