From dfb28757f799e02840e8939ca739107f2560f53f Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Mon, 22 Jun 2020 10:41:19 +1000 Subject: [PATCH] ipc: add comment about socketDirectory linker override on android Signed-off-by: David Crawshaw --- ipc/uapi_unix.go | 2 ++ 1 file changed, 2 insertions(+) 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 {