Skip to content

Commit

Permalink
Change protocol type
Browse files Browse the repository at this point in the history
  • Loading branch information
leninalive committed Nov 29, 2023
1 parent a155101 commit 72a1165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wg-quick/linux.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72a1165

Please sign in to comment.