]> git.ipfire.org Git - thirdparty/openwrt.git/commit
wireguard: add metric to routes 23280/head
authorErik Conijn <egc112@msn.com>
Sun, 10 May 2026 09:01:10 +0000 (11:01 +0200)
committerRobert Marko <robimarko@gmail.com>
Wed, 1 Jul 2026 17:09:09 +0000 (19:09 +0200)
commit67ee9cf19dd6dc4e4d846da2ac97afaf745103da
tree6f7f01ae3f68f38f98d691f191450784a13bbbc4
parent85767ac8fe8191d90f959e30d87f92ea3c75b4e1
wireguard: add metric to routes

maintainer: Felix Fietkau <nbd@nbd.name>

The metric field is not used when wireGuard routes are created.

See: https://github.com/openwrt/openwrt/issues/23199

This patch is aimed at adding the metric field in the config to the created routes for WireGuard if
the metric field is not empty and not 0

Compile tested: X86, Openwrt-main
Run tested: X86

Please have a look and consider implementing

Signed-off-by: Erik Conijn <egc112@msn.com>
Link: https://github.com/openwrt/openwrt/pull/23280
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/network/utils/wireguard-tools/files/wireguard.uc