wg-quick: darwin: rename namefile environment variable
This paves the way for an openbsd implementation. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
9d52a812c8
commit
59dae33e9a
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ get_real_interface() {
|
||||||
}
|
}
|
||||||
|
|
||||||
add_if() {
|
add_if() {
|
||||||
export WG_DARWIN_UTUN_NAME_FILE="/var/run/wireguard/$INTERFACE.name"
|
export WG_TUN_NAME_FILE="/var/run/wireguard/$INTERFACE.name"
|
||||||
mkdir -m 0700 -p "/var/run/wireguard/"
|
mkdir -m 0700 -p "/var/run/wireguard/"
|
||||||
cmd "${WG_QUICK_USERSPACE_IMPLEMENTATION:-wireguard-go}" utun
|
cmd "${WG_QUICK_USERSPACE_IMPLEMENTATION:-wireguard-go}" utun
|
||||||
get_real_interface
|
get_real_interface
|
||||||
|
|
Loading…
Reference in a new issue