fix: Add packet_encoding support for VLESS outbound configuration
This commit is contained in:
@@ -58,14 +58,15 @@ sing_box_cf_add_proxy_outbound() {
|
|||||||
local scheme="${url%%://*}"
|
local scheme="${url%%://*}"
|
||||||
case "$scheme" in
|
case "$scheme" in
|
||||||
vless)
|
vless)
|
||||||
local tag host port uuid flow
|
local tag host port uuid flow packet_encoding
|
||||||
tag=$(get_outbound_tag_by_section "$section")
|
tag=$(get_outbound_tag_by_section "$section")
|
||||||
host=$(url_get_host "$url")
|
host=$(url_get_host "$url")
|
||||||
port=$(url_get_port "$url")
|
port=$(url_get_port "$url")
|
||||||
uuid=$(url_get_userinfo "$url")
|
uuid=$(url_get_userinfo "$url")
|
||||||
flow=$(url_get_query_param "$url" "flow")
|
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
|
local transport
|
||||||
transport=$(url_get_query_param "$url" "type")
|
transport=$(url_get_query_param "$url" "type")
|
||||||
|
|||||||
Reference in New Issue
Block a user