mirror of
https://github.com/amnezia-vpn/amneziawg-tools.git
synced 2025-07-26 06:52:50 +02:00
Change protocol type
This commit is contained in:
parent
a1551010e5
commit
72a1165143
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue