1
0
mirror of https://git.zx2c4.com/wireguard-go synced 2024-11-15 01:05:15 +01:00

ipc: add comment about socketDirectory linker override on android

Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
David Crawshaw 2020-06-22 10:41:19 +10:00
parent 00bcd865e6
commit dfb28757f7

View File

@ -23,6 +23,8 @@ const (
IpcErrorPortInUse = -int64(unix.EADDRINUSE) IpcErrorPortInUse = -int64(unix.EADDRINUSE)
) )
// socketDirectory is variable because it is modified by a linker
// flag in wireguard-android.
var socketDirectory = "/var/run/wireguard" var socketDirectory = "/var/run/wireguard"
func sockPath(iface string) string { func sockPath(iface string) string {