Fix wg-quick

This commit is contained in:
Iurii Egorov 2023-11-30 10:18:00 +03:00
parent 98869a07e9
commit eec604dc95

View file

@ -87,7 +87,7 @@ 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/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