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

Fix IPv6 aggregation

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-08-15 09:02:08 +02:00
parent 538cec8103
commit e6f4b063e7
2 changed files with 6 additions and 5 deletions

View file

@ -167,7 +167,7 @@ ss_rules() {
local args
local rule_name
if [ "$cfg" = "ss_rules" ]; then
rule_name="default"
rule_name="def"
else
rule_name="$(echo $cfg | sed 's/_rule//' | cut -c -7)"
fi
@ -256,6 +256,7 @@ ss_rules_call6() {
${local_port_udp:+-L "$local_port_udp6"} \
${src_default:+--src-default "$src_default"} \
${dst_default:+--dst-default "$dst_default"} \
${local_default:+--local-default "$local_default"} \
${dst_ips_bypass_file:+--dst-bypass-file "$dst_ips_bypass_file"} \
${dst_ips_forward_file:+--dst-forward-file "$dst_ips_forward_file"} \
${dst_ips_bypass6:+--dst-bypass "$dst_ips_bypass6"} \
@ -265,6 +266,7 @@ ss_rules_call6() {
${src_ips_checkdst6:+--src-checkdst "$src_ips_checkdst6"} \
${ifnames:+--ifnames "$ifnames"} \
${ipt_args:+--ipt-extra "$ipt_args"} \
${cfg:+--rule-name "$rule_name"} \
$args \
|| "$bin6" "$@" -f
}