wg-quick: add 'dev' to 'ip link add' to avoid keyword conflicts
PATCH 1/1 wg-quick: add 'dev' to 'ip link add' to avoid keyword conflicts
Signed-off-by TriangleSnake <[email protected]>
--- src/wg-quick/linux.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/wg-quick/linux.bash +1 -1
@@ -87,7 +87,7 @@ auto_su() { add_if() { local ret - if ! cmd ip link add "$INTERFACE" type wireguard; then + if ! cmd ip link add dev "$INTERFACE" type wireguard; then ret=$? [[ -e /sys/module/wireguard ]] || ! command -v "${WG_QUICK_USERSPACE_IMPLEMENTATION:-wireguard-go}" >/dev/null && exit $ret echo "[!] Missing WireGuard kernel module. Falling back to slow userspace implementation." >&2
Signature · 1 line
2.39.5 (Apple Git-154)
Jason A. Donenfeld
AppliedQuoted 10 lines · TriangleSnake
Signed-off-by TriangleSnake <[email protected]>--- src/wg-quick/linux.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)src/wg-quick/linux.bash +0
-0
src/wg-quick/linux.bash auto_su() { · line 93
Quoted 8 lines
src/wg-quick/linux.bash +1
-1@@ -87,7 +87,7 @@ auto_su() { add_if() { local ret - if ! cmd ip link add "$INTERFACE" type wireguard; then + if ! cmd ip link add dev "$INTERFACE" type wireguard; then ret=$? [[ -e /sys/module/wireguard ]] || ! command -v "${WG_QUICK_USERSPACE_IMPLEMENTATION:-wireguard-go}" >/dev/null && exit $ret echo "[!] Missing WireGuard kernel module. Falling back to slow userspace implementation." >&2
Applied, thanks.
Jason