pbr: bugfix: filter only static routes for new tables

* fixes https://github.com/openwrt/packages/issues/24999

Signed-off-by: Stan Grishin <stangri@melmac.ca>
This commit is contained in:
Stan Grishin
2024-09-23 21:00:11 +00:00
parent e828f98ba9
commit 77eedd8c66
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=pbr
PKG_VERSION:=1.1.7
PKG_RELEASE:=10
PKG_RELEASE:=11
PKG_LICENSE:=AGPL-3.0-or-later
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>

View File

@@ -1664,7 +1664,7 @@ interface_routing() {
try ip -4 route add $i table "$tid" >/dev/null 2>&1 || ipv4_error=1
fi
done << EOF
$(ip -4 route list table main)
$(ip -4 route list table main proto static)
EOF
try ip -4 rule add fwmark "${mark}/${fw_mask}" table "$tid" priority "$priority" || ipv4_error=1
try nft add chain inet "$nftTable" "${nftPrefix}_mark_${mark}" || ipv4_error=1