summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helper/helper.go5
-rw-r--r--helper/linux.go2
-rw-r--r--helper/windows.go2
3 files changed, 5 insertions, 4 deletions
diff --git a/helper/helper.go b/helper/helper.go
index 0eea9c7..1b7033a 100644
--- a/helper/helper.go
+++ b/helper/helper.go
@@ -22,7 +22,6 @@ import (
"net/http"
"os"
"os/exec"
- "runtime"
)
const (
@@ -41,9 +40,7 @@ func main() {
defer logger.Close()
}
- if runtime.GOOS == "darwin" {
- daemonize()
- }
+ daemonize()
serveHTTP()
}
diff --git a/helper/linux.go b/helper/linux.go
index ba43d82..f21cc55 100644
--- a/helper/linux.go
+++ b/helper/linux.go
@@ -28,6 +28,8 @@ const (
snapOpenvpnPath = "/snap/bin/riseup-vpn.openvpn"
)
+func daemonize() {}
+
func getOpenvpnPath() string {
if os.Getenv("SNAP") != "" {
return snapOpenvpnPath
diff --git a/helper/windows.go b/helper/windows.go
index 47f53ff..61096c2 100644
--- a/helper/windows.go
+++ b/helper/windows.go
@@ -28,6 +28,8 @@ const (
chocoOpenvpnPath = `C:\Program Files\OpenVPN\bin\openvpn.exe`
)
+func daemonize() {}
+
func getOpenvpnPath() string {
if _, err := os.Stat(openvpnPath); !os.IsNotExist(err) {
return openvpnPath