Development discussion of WireGuard
 help / color / mirror / Atom feed
* [PATCH] wg-quick: add 'dev' to 'ip link add' to avoid keyword conflicts
@ 2025-05-05  7:13 TriangleSnake
  2025-05-20 22:18 ` Jason A. Donenfeld
  0 siblings, 1 reply; 2+ messages in thread
From: TriangleSnake @ 2025-05-05  7:13 UTC (permalink / raw)
  To: wireguard; +Cc: trianglesnake2002

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)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] wg-quick: add 'dev' to 'ip link add' to avoid keyword conflicts
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Jason A. Donenfeld @ 2025-05-20 22:18 UTC (permalink / raw)
  To: TriangleSnake; +Cc: wireguard

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-05-20 23:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).