From 34ba8b5dfb30857feb0d87db91e2740de496fc3b Mon Sep 17 00:00:00 2001 From: George Kutsurua Date: Mon, 26 Jul 2021 15:59:22 +0400 Subject: [PATCH] ipc: uapi for iOS Signed-off-by: George Kutsurua --- ipc/uapi_ios.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ipc/uapi_ios.go diff --git a/ipc/uapi_ios.go b/ipc/uapi_ios.go new file mode 100644 index 000000000..74ce0a816 --- /dev/null +++ b/ipc/uapi_ios.go @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: MIT + * + * Copyright (C) 2017-2021 WireGuard LLC. All Rights Reserved. + */ + +package ipc + +import ( + "os" + "strings" +) + +func init() { + // in iOS there is no access to write into */var/run* directory + // but we can use app specific temp directory instead + socketDirectory = strings.TrimSuffix(os.TempDir(), string(os.PathSeparator)) +}