summaryrefslogtreecommitdiff
path: root/pkg/helper/darwin.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-12-16 15:17:34 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-12-16 15:17:34 +0100
commit25a905ed7775ca8ecc12de158ff74d1e7447db17 (patch)
tree33e09ff761962cadde65c91dea5ab7f435b6ac12 /pkg/helper/darwin.go
parent66f3e3c57e54644c59caab987fd5bda5cae0ee0b (diff)
more fix
Diffstat (limited to 'pkg/helper/darwin.go')
-rw-r--r--pkg/helper/darwin.go3
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)