1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix for DSCP

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-12-22 20:20:29 +01:00
parent 2b5c9591ca
commit 9c8645ae28

View file

@ -11,6 +11,14 @@ USE_PROCD=1
# shellcheck disable=SC1091 # shellcheck disable=SC1091
. /lib/functions.sh . /lib/functions.sh
if [ -f /usr/sbin/iptables-legacy ]; then
IPTABLES="/usr/sbin/iptables-legacy"
IP6TABLES="/usr/sbin/ip6tables-legacy"
else
IPTABLES="/usr/sbin/iptables"
IP6TABLES="/usr/sbin/ip6tables"
fi
# Get the lan interface name # Get the lan interface name
lan_device= lan_device=
config_load network config_load network
@ -19,10 +27,10 @@ config_get lan_device lan ifname
config_load dscp config_load dscp
_ipt4() { _ipt4() {
iptables -w -t mangle "$@" 2>&1 >/dev/null $IPTABLES -w -t mangle "$@" 2>&1 >/dev/null
} }
_ipt6() { _ipt6() {
ip6tables -w -t mangle "$@" 2>&1 >/dev/null $IP6TABLES -w -t mangle "$@" 2>&1 >/dev/null
} }
_add_dscp_rule() { _add_dscp_rule() {