From e4d7695a93a5c96fb1ae0211282233f62050ba6f Mon Sep 17 00:00:00 2001 From: xzx3344521 Date: Sun, 19 Oct 2025 18:16:45 +0800 Subject: [PATCH] Refactor IP address display in script Simplify IP address retrieval and output format. --- ru | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ru b/ru index 88d6960..52499ad 100644 --- a/ru +++ b/ru @@ -37,14 +37,12 @@ services: " > "$file_path" sleep 1 -ip=$(ip -4 addr show scope global | grep -oP 'inet \K[\d.]+' | head -n 1) - printf "访问地址: %s:3344\n" "$ip" docker compose -p my_rustdesk_project -f /boot/脚本/ru.yaml up -d while true; do if docker ps | grep -q "my_rustdesk_project-rustdesk-1"; then docker exec -it my_rustdesk_project-rustdesk-1 sh -c './apimain reset-admin-pwd 3459635287' - + ip -4 addr show scope global | grep -oP 'inet \K[\d.]+' | head -n 1 | sed 's/^/访问地址: /;s/$/:21114/' | tr -d '\r' echo "RustDesk管理员账号: admin" echo "RustDesk管理员密码: 3459635287" break