mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-04 22:53:56 +08:00
update 2026-10-17 22:50:00
This commit is contained in:
1 parent
63dbfd1d1b
commit
b9c5dc7236
19 files changed
+262
-131
No files matched your search
@@ -2974,8 +2974,8 @@ start_rules() {
|
||||
esac
|
||||
}
|
||||
|
||||
if [ "$(uci_get_by_type global dports)" = "3" ]; then
|
||||
custom_ports=$(uci_get_by_name "$GLOBAL_SERVER" custom_ports) # custom_ports 存储了用户自定义的端口
|
||||
if [ "$(uci_get_by_type global dports 1)" = "3" ]; then
|
||||
custom_ports=$(uci_get_by_type global custom_ports) # custom_ports 存储了用户自定义的端口
|
||||
if [ -n "$custom_ports" ]; then
|
||||
proxyport="-m multiport --dports $custom_ports"
|
||||
fi
|
||||
@@ -3017,7 +3017,7 @@ start_rules() {
|
||||
-G "$(uci_get_by_type access_control lan_gm_ips)" \
|
||||
-m "$(uci_get_by_type access_control Interface)" \
|
||||
-D "$proxyport" \
|
||||
"$(get_arg_out)" "$(gfwmode)" "$ARG_UDP" "$ARG_UDP_RULES" "$ARG_A"
|
||||
$(get_arg_out) $(gfwmode) $ARG_UDP $ARG_UDP_RULES $ARG_A
|
||||
|
||||
return $?
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user