[PATCH] wg-quick: add 'dev' to 'ip link add' to avoid keyword conflicts
Jason A. Donenfeld
Jason at zx2c4.com
Tue May 20 22:18:26 UTC 2025
On Mon, May 05, 2025 at 03:13:06PM +0800, TriangleSnake wrote:
> Signed-off-by: TriangleSnake <trianglesnake2002 at 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
More information about the WireGuard
mailing list