From 49dd1d608f90ff1a1decd6b2174e4ba39522d653 Mon Sep 17 00:00:00 2001 From: Andrey Petelin Date: Mon, 20 Oct 2025 20:16:07 +0500 Subject: [PATCH] feat: enable UDP-over-TCP (mode 2) for SOCKS outbound when udp_over_tcp=1 and split args for readability --- podkop/files/usr/lib/sing_box_config_facade.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/podkop/files/usr/lib/sing_box_config_facade.sh b/podkop/files/usr/lib/sing_box_config_facade.sh index 86ee149..ffbe854 100644 --- a/podkop/files/usr/lib/sing_box_config_facade.sh +++ b/podkop/files/usr/lib/sing_box_config_facade.sh @@ -80,8 +80,17 @@ sing_box_cf_add_proxy_outbound() { password="${userinfo#*:}" fi fi - config="$(sing_box_cm_add_socks_outbound "$config" "$tag" "$host" "$port" "$version" "$username" "$password" \ - "" "$udp_over_tcp")" + config="$(sing_box_cm_add_socks_outbound \ + "$config" \ + "$tag" \ + "$host" \ + "$port" \ + "$version" \ + "$username" \ + "$password" \ + "" \ + "$([ "$udp_over_tcp" == "1" ] && echo 2)" # if udp_over_tcp is enabled, enable version 2 + )" ;; vless) local tag host port uuid flow packet_encoding