summaryrefslogtreecommitdiff
path: root/helper/darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'helper/darwin.go')
-rw-r--r--helper/darwin.go17
1 files changed, 13 insertions, 4 deletions
diff --git a/helper/darwin.go b/helper/darwin.go
index 33a69fc..34af01e 100644
--- a/helper/darwin.go
+++ b/helper/darwin.go
@@ -39,17 +39,26 @@ import (
)
const (
- logPath = "/Applications/RiseupVPN.app/Contents/helper/helper.log"
- openvpnPath = "/Applications/RiseupVPN.app/Contents/Resources/openvpn.leap"
+ appPath = "/Applications/RiseupVPN.app/"
+ helperPath = appPath + "Contents/helper/"
+ logFolder = helperPath
+ openvpnPath = appPath + "Contents/Resources/openvpn.leap"
- rulefilePath = "/Applications/RiseupVPN.app/Contents/helper/bitmask.pf.conf"
+ rulefilePath = helperPath + "bitmask.pf.conf"
bitmask_anchor = "com.apple/250.BitmaskFirewall"
gateways_table = "bitmask_gateways"
- nameserver = "10.42.0.1"
pfctl = "/sbin/pfctl"
)
+var (
+ platformOpenvpnFlags = []string{
+ "--script-security", "2",
+ "--up", helperPath + "client.up.sh",
+ "--down", helperPath + "client.down.sh",
+ }
+)
+
func daemonize() {
cntxt := &daemon.Context{
PidFileName: "pid",