This commit is contained in:
Den Piligrim
2026-01-03 22:09:46 +03:00
parent c48e3df360
commit b77e5560c8
+5
View File
@@ -63,6 +63,11 @@ echo ""
#################################
# Function to get panel URL from 3x-ui
get_xui_url() {
if [[ "$REMOTE_PANEL" == "true" ]]; then
echo ""
return
fi
local output=$(x-ui settings 2>/dev/null || true)
echo "$output" | sed 's/\x1b\[[0-9;]*m//g' | grep "Access URL:" | grep -oE 'https?://[^[:space:]]+' | head -n1 || true