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
|
@ -100,7 +100,7 @@ get_real_interface() {
|
|||
}
|
||||
|
||||
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/"
|
||||
cmd "${WG_QUICK_USERSPACE_IMPLEMENTATION:-wireguard-go}" utun
|
||||
get_real_interface
|
||||
|
|
Reference in New Issue