summaryrefslogtreecommitdiff
path: root/src/daemon_darwin.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-19 13:12:25 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-19 13:12:25 +0200
commit086d32186ad4bddbed8bacc7f99705c8e62a1f9d (patch)
treee3d6cfca44118b2c835993aa7a8c85d46ae57ee2 /src/daemon_darwin.go
parentc5d7efc2467abb6cd8365c83fae68da6924c17f2 (diff)
downloadwireguard-go-086d32186ad4bddbed8bacc7f99705c8e62a1f9d.tar.gz
wireguard-go-086d32186ad4bddbed8bacc7f99705c8e62a1f9d.zip
Reviewed and added OSX patch
The patch was provided by: Naveen Nathan <naveen@lastninja.net> The following modifications to the patch was made: - Added copyright notice - Fixed file descriptor leak in .MTU() method - Migrated to the new(er) golang.org/x/sys/unix package - Removed non-functioning Daemonize method
Diffstat (limited to 'src/daemon_darwin.go')
-rw-r--r--src/daemon_darwin.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/daemon_darwin.go b/src/daemon_darwin.go
new file mode 100644
index 0000000..913af0e
--- /dev/null
+++ b/src/daemon_darwin.go
@@ -0,0 +1,9 @@
+package main
+
+import (
+ "errors"
+)
+
+func Daemonize() error {
+ return errors.New("Not implemented on OSX")
+}