From 3ad3e83c7aea762c7030b7aa7485f48083d7d9a9 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 24 Jul 2018 14:32:02 +0200 Subject: uapi: allow overriding socket directory at compile time --- uapi_bsd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'uapi_bsd.go') diff --git a/uapi_bsd.go b/uapi_bsd.go index bb16d2c..80435dd 100644 --- a/uapi_bsd.go +++ b/uapi_bsd.go @@ -18,12 +18,13 @@ import ( "unsafe" ) +var socketDirectory = "/var/run/wireguard" + const ( ipcErrorIO = -int64(unix.EIO) ipcErrorProtocol = -int64(unix.EPROTO) ipcErrorInvalid = -int64(unix.EINVAL) ipcErrorPortInUse = -int64(unix.EADDRINUSE) - socketDirectory = "/var/run/wireguard" socketName = "%s.sock" ) -- cgit v1.2.3-59-g8ed1b