diff --git a/install.sh b/install.sh index d6fbd0e..2504411 100644 --- a/install.sh +++ b/install.sh @@ -47,7 +47,7 @@ echo "" get_xui_url() { local output=$(x-ui settings 2>/dev/null) - echo "$output" | grep -oE 'https?://[^ ]+' | head -n1 + echo "$output" | sed 's/\x1b\[[0-9;]*m//g' | grep "Access URL:" | grep -oE 'https?://[^[:space:]]+' | head -n1 } echo "Определяем URL панели 3x-ui..."