mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-01-27 12:50:37 +03:00
feat: enable UDP-over-TCP (mode 2) for SOCKS outbound when udp_over_tcp=1 and split args for readability
This commit is contained in:
@@ -80,8 +80,17 @@ sing_box_cf_add_proxy_outbound() {
|
|||||||
password="${userinfo#*:}"
|
password="${userinfo#*:}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
config="$(sing_box_cm_add_socks_outbound "$config" "$tag" "$host" "$port" "$version" "$username" "$password" \
|
config="$(sing_box_cm_add_socks_outbound \
|
||||||
"" "$udp_over_tcp")"
|
"$config" \
|
||||||
|
"$tag" \
|
||||||
|
"$host" \
|
||||||
|
"$port" \
|
||||||
|
"$version" \
|
||||||
|
"$username" \
|
||||||
|
"$password" \
|
||||||
|
"" \
|
||||||
|
"$([ "$udp_over_tcp" == "1" ] && echo 2)" # if udp_over_tcp is enabled, enable version 2
|
||||||
|
)"
|
||||||
;;
|
;;
|
||||||
vless)
|
vless)
|
||||||
local tag host port uuid flow packet_encoding
|
local tag host port uuid flow packet_encoding
|
||||||
|
|||||||
Reference in New Issue
Block a user