This commit is contained in:
itdoginfo
2024-10-13 18:20:52 +03:00
parent 17172dbc54
commit 249a2e3234
3 changed files with 11 additions and 8 deletions

View File

@@ -434,11 +434,7 @@ sing_box_config_vless() {
uuid=$(echo "$STRING" | cut -d'/' -f3 | cut -d'@' -f1)
server=$(echo "$STRING" | cut -d'@' -f2 | cut -d':' -f1)
#port=$(echo "$STRING" | cut -d'@' -f2 | cut -d':' -f2 | cut -d'/' -f1)
port=$(echo "$STRING" | cut -d'@' -f2 | cut -d':' -f2 | cut -d'?' -f1)
if [[ "$port" == */* ]]; then
port=$(echo "$port" | cut -d'/' -f1)
fi
port=$(echo "$STRING" | cut -d'@' -f2 | cut -d':' -f2 | cut -d'?' -f1 | awk -F'/' '{print $1}')
type=$(get_param "type")
flow=$(get_param "flow")
sni=$(get_param "sni")
@@ -473,7 +469,6 @@ sing_box_config_vless() {
else
.
end' "$template_config" >/etc/sing-box/config.json
#! Добавить label в luci
}
sing_box_config_check() {