mirror of
https://github.com/amnezia-vpn/amneziawg-tools.git
synced 2025-08-02 17:42:50 +02:00
K
This commit is contained in:
parent
17c71156f4
commit
98869a07e9
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ add_if() {
|
|||
local ret
|
||||
if ! cmd ip link add "$INTERFACE" type amnezia; 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:-amneziawg-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
|
||||
|
|
Loading…
Add table
Reference in a new issue