All of lore.kernel.org
 help / color / mirror / Atom feed
From: TriangleSnake <trianglesnake2002@gmail.com>
To: wireguard@lists.zx2c4.com
Cc: trianglesnake2002@gmail.com
Subject: [PATCH] wg-quick: add 'dev' to 'ip link add' to avoid keyword conflicts
Date: Mon,  5 May 2025 15:13:06 +0800	[thread overview]
Message-ID: <20250505071306.80342-1-trianglesnake2002@gmail.com> (raw)

Signed-off-by: TriangleSnake <trianglesnake2002@gmail.com>
---
 src/wg-quick/linux.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wg-quick/linux.bash b/src/wg-quick/linux.bash
index 4193ce5..93df80d 100755
--- a/src/wg-quick/linux.bash
+++ b/src/wg-quick/linux.bash
@@ -87,7 +87,7 @@ auto_su() {
 
 add_if() {
 	local ret
-	if ! cmd ip link add "$INTERFACE" type wireguard; then
+	if ! cmd ip link add dev "$INTERFACE" type wireguard; then
 		ret=$?
 		[[ -e /sys/module/wireguard ]] || ! command -v "${WG_QUICK_USERSPACE_IMPLEMENTATION:-wireguard-go}" >/dev/null && exit $ret
 		echo "[!] Missing WireGuard kernel module. Falling back to slow userspace implementation." >&2
-- 
2.39.5 (Apple Git-154)


             reply	other threads:[~2025-05-20 22:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-05  7:13 TriangleSnake [this message]
2025-05-20 22:18 ` [PATCH] wg-quick: add 'dev' to 'ip link add' to avoid keyword conflicts Jason A. Donenfeld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250505071306.80342-1-trianglesnake2002@gmail.com \
    --to=trianglesnake2002@gmail.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.