mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-06 03:26:51 +03:00
refactor: rename enable_shadowsocks_udp_over_tcp to enable_udp_over_tcp in config and script
This commit is contained in:
@@ -22,7 +22,7 @@ config section 'main'
|
||||
option connection_type 'proxy'
|
||||
option proxy_config_type 'url'
|
||||
option proxy_string ''
|
||||
option enable_shadowsocks_udp_over_tcp '0'
|
||||
option enable_udp_over_tcp '0'
|
||||
#list community_lists 'russia_inside'
|
||||
#option user_domain_list_type 'dynamic'
|
||||
#list user_domains '2ip.ru'
|
||||
|
||||
@@ -610,7 +610,7 @@ configure_outbound_handler() {
|
||||
log "Detected proxy configuration type: url" "debug"
|
||||
local proxy_string udp_over_tcp
|
||||
config_get proxy_string "$section" "proxy_string"
|
||||
config_get udp_over_tcp "$section" "enable_shadowsocks_udp_over_tcp"
|
||||
config_get udp_over_tcp "$section" "enable_udp_over_tcp"
|
||||
# Extract the first non-comment line as the active configuration
|
||||
active_proxy_string=$(echo "$proxy_string" | grep -v "^[[:space:]]*\/\/" | head -n 1)
|
||||
|
||||
@@ -631,7 +631,7 @@ configure_outbound_handler() {
|
||||
local urltest_proxy_links udp_over_tcp i urltest_tag selector_tag outbound_tag outbound_tags \
|
||||
urltest_outbounds selector_outbounds
|
||||
config_get urltest_proxy_links "$section" "urltest_proxy_links"
|
||||
config_get udp_over_tcp "$section" "enable_shadowsocks_udp_over_tcp"
|
||||
config_get udp_over_tcp "$section" "enable_udp_over_tcp"
|
||||
|
||||
if [ -z "$urltest_proxy_links" ]; then
|
||||
log "URLTest proxy links is not set. Aborted." "fatal"
|
||||
|
||||
Reference in New Issue
Block a user