From 72a1165143255debed200fbb0bb23dba1fe17749 Mon Sep 17 00:00:00 2001 From: Iurii Egorov Date: Wed, 29 Nov 2023 22:22:28 +0300 Subject: [PATCH] Change protocol type --- src/wg-quick/linux.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wg-quick/linux.bash b/src/wg-quick/linux.bash index 6ef4062..eeadef9 100755 --- a/src/wg-quick/linux.bash +++ b/src/wg-quick/linux.bash @@ -87,9 +87,9 @@ auto_su() { add_if() { local ret - if ! cmd ip link add "$INTERFACE" type amnezia; then + if ! cmd ip link add "$INTERFACE" type amneziawg; then ret=$? - [[ -e /sys/module/amnezia ]] || ! command -v "${WG_QUICK_USERSPACE_IMPLEMENTATION:-wireguard-go}" >/dev/null && exit $ret + [[ -e /sys/module/amneziawg ]] || ! command -v "${WG_QUICK_USERSPACE_IMPLEMENTATION:-wireguard-go}" >/dev/null && exit $ret echo "[!] Missing WireGuard (Amnezia VPN) kernel module. Falling back to slow userspace implementation." >&2 cmd "${WG_QUICK_USERSPACE_IMPLEMENTATION:-wireguard-go}" "$INTERFACE" fi