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)) +}