summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Crawshaw <crawshaw@tailscale.com>2020-06-22 10:41:19 +1000
committerDavid Crawshaw <crawshaw@tailscale.com>2020-06-22 10:41:19 +1000
commitdfb28757f799e02840e8939ca739107f2560f53f (patch)
tree11c99ce7ce37e769d67866f243c5a0d7e81b1e68
parent00bcd865e6996f932ea0dcacf7df015f79307153 (diff)
ipc: add comment about socketDirectory linker override on android
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
-rw-r--r--ipc/uapi_unix.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipc/uapi_unix.go b/ipc/uapi_unix.go
index 2e0813e..510ab31 100644
--- a/ipc/uapi_unix.go
+++ b/ipc/uapi_unix.go
@@ -23,6 +23,8 @@ const (
IpcErrorPortInUse = -int64(unix.EADDRINUSE)
)
+// socketDirectory is variable because it is modified by a linker
+// flag in wireguard-android.
var socketDirectory = "/var/run/wireguard"
func sockPath(iface string) string {