From 054ed355cf1fc0956c06921ff3870b6793493403 Mon Sep 17 00:00:00 2001 From: Andrey Petelin Date: Thu, 11 Sep 2025 17:52:47 +0500 Subject: [PATCH] fix: Add packet_encoding support for VLESS outbound configuration --- podkop/files/usr/lib/sing_box_config_facade.sh | 5 +++-- 1 file changed, 3 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 601afde..63a590c 100644 --- a/podkop/files/usr/lib/sing_box_config_facade.sh +++ b/podkop/files/usr/lib/sing_box_config_facade.sh @@ -58,14 +58,15 @@ sing_box_cf_add_proxy_outbound() { local scheme="${url%%://*}" case "$scheme" in vless) - local tag host port uuid flow + local tag host port uuid flow packet_encoding tag=$(get_outbound_tag_by_section "$section") host=$(url_get_host "$url") port=$(url_get_port "$url") uuid=$(url_get_userinfo "$url") flow=$(url_get_query_param "$url" "flow") + packet_encoding=$(url_get_query_param "$url" "packetEncoding") - config=$(sing_box_cm_add_vless_outbound "$config" "$tag" "$host" "$port" "$uuid" "$flow") + config=$(sing_box_cm_add_vless_outbound "$config" "$tag" "$host" "$port" "$uuid" "$flow" "" "$packet_encoding") local transport transport=$(url_get_query_param "$url" "type")