public inbox for wireguard@lists.zx2c4.com
 help / color / mirror / Atom feed
From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: TriangleSnake <trianglesnake2002@gmail.com>
Cc: wireguard@lists.zx2c4.com
Subject: Re: [PATCH] wg-quick: add 'dev' to 'ip link add' to avoid keyword conflicts
Date: Wed, 21 May 2025 00:18:26 +0200	[thread overview]
Message-ID: <aCz_sv1FDc_1horM@zx2c4.com> (raw)
In-Reply-To: <20250505071306.80342-1-trianglesnake2002@gmail.com>

On Mon, May 05, 2025 at 03:13:06PM +0800, TriangleSnake wrote:
> 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

Applied, thanks.

Jason

      reply	other threads:[~2025-05-20 23:11 UTC|newest]

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

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=aCz_sv1FDc_1horM@zx2c4.com \
    --to=jason@zx2c4.com \
    --cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox