summaryrefslogtreecommitdiff
path: root/pkg/helper/darwin.go
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2019-09-05 01:14:06 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2019-09-05 01:18:47 +0200
commit80993915cad062e7b1efe86bfe18faae809d25bb (patch)
tree7b54a34a634b221563ac7d200db6eb4665e460d2 /pkg/helper/darwin.go
parent1259bed3f1d316874fc4eb790fd9ef31bffeab0f (diff)
[bug] parse the result of firewall/isup for osx
Diffstat (limited to 'pkg/helper/darwin.go')
-rw-r--r--pkg/helper/darwin.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/helper/darwin.go b/pkg/helper/darwin.go
index f291322..0cee714 100644
--- a/pkg/helper/darwin.go
+++ b/pkg/helper/darwin.go
@@ -27,7 +27,6 @@ To inspect the rules in the firewall manually, use the bitmask anchor:
package helper
import (
- "bytes"
"errors"
"fmt"
"log"
@@ -124,7 +123,7 @@ func firewallIsUp() bool {
log.Printf(string(out))
return false
}
- return bytes.Contains(out, []byte("block out proto udp to any port 53"))
+ return strings.Contains(string(out), "block drop out proto udp from any to any port = 53")
}
func enablePf() {