Skip to content

Commit ae35ff8

Browse files
committed
ipc: uapi for iOS
1 parent 15b24b6 commit ae35ff8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

ipc/uapi_ios.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/* SPDX-License-Identifier: MIT
2+
*
3+
* Copyright (C) 2017-2021 WireGuard LLC. All Rights Reserved.
4+
*/
5+
6+
package ipc
7+
8+
import (
9+
"os"
10+
"strings"
11+
)
12+
13+
func init() {
14+
// in iOS there is no access to write into */var/run* directory
15+
// but we can use app specific temp directory instead
16+
socketDirectory = strings.TrimSuffix(os.TempDir(), string(os.PathSeparator))
17+
}

0 commit comments

Comments
 (0)