mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 10:31:51 +00:00
Small IPv6 fixes
This commit is contained in:
parent
bb6cb0e8ae
commit
82f8b3c838
2 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ _ipt4() {
|
|||
iptables -w -t mangle "$@" 2>&1 >/dev/null
|
||||
}
|
||||
_ipt6() {
|
||||
ip6tables -w -t mangle "$@" >/dev/null
|
||||
ip6tables -w -t mangle "$@" 2>&1 >/dev/null
|
||||
}
|
||||
|
||||
_add_dscp_rule() {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh /etc/rc.common
|
||||
#
|
||||
# Copyright 2019-2020 Xingwang Liao <kuoruan@gmail.com>
|
||||
# Copyright 2020-2021 Ycarus (Yannick Chabanois) <ycarus@zugaina.org> for OpenMPTCProuter
|
||||
# Copyright 2020-2022 Ycarus (Yannick Chabanois) <ycarus@zugaina.org> for OpenMPTCProuter
|
||||
# Licensed to the public under the MIT License.
|
||||
#
|
||||
|
||||
|
@ -2102,7 +2102,7 @@ rules_up() {
|
|||
OUTBOUND_SERVERS_V4="$(uci -q get v2ray.omrout.s_vless_address)"
|
||||
OUTBOUND_SERVERS_V6="$(uci -q get v2ray.omrout.s_vless_address)"
|
||||
TRANSPARENT_PROXY_PORT="$(uci -q get v2ray.omr.port)"
|
||||
[ -n "$OUTBOUND_SERVERS_V4" ] && {
|
||||
[ -n "$OUTBOUND_SERVERS_V4" ] || [ -n "$OUTBOUND_SERVERS_V6" ] && {
|
||||
logger -t "v2ray" "Rules UP"
|
||||
add_v2ray_redirect_rules
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue