tt-help-cli-ycl 1.3.31 → 1.3.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/run-explore.bat +15 -14
package/package.json
CHANGED
package/scripts/run-explore.bat
CHANGED
|
@@ -8,17 +8,18 @@ ECHO ========================================
|
|
|
8
8
|
ECHO tt-help-cli-ycl one-click launcher (Windows CMD)
|
|
9
9
|
ECHO ========================================
|
|
10
10
|
|
|
11
|
-
REM ---------- 0.
|
|
12
|
-
|
|
11
|
+
REM ---------- 0. Auto-select server based on local IP ----------
|
|
12
|
+
SET "TARGET_SERVER=http://117.71.53.99:17301"
|
|
13
|
+
SET "LOCAL_IP="
|
|
14
|
+
FOR /F "delims=" %%I IN ('cmd /c "ipconfig ^| findstr /R /C:"172\.18\.154\.[0-9]+""') DO (
|
|
13
15
|
SET "LOCAL_IP=%%I"
|
|
14
16
|
SET "TARGET_SERVER=http://172.18.154.201:3001"
|
|
15
17
|
)
|
|
16
18
|
|
|
17
19
|
IF NOT DEFINED LOCAL_IP (
|
|
18
|
-
|
|
19
|
-
ECHO [INFO] 未检测到内网 IP,使用公网 server
|
|
20
|
+
ECHO [INFO] No intranet IP detected, using public server
|
|
20
21
|
) ELSE (
|
|
21
|
-
ECHO [INFO]
|
|
22
|
+
ECHO [INFO] Intranet IP detected, using intranet server
|
|
22
23
|
)
|
|
23
24
|
|
|
24
25
|
REM ---------- 1. Check/install latest version ----------
|
|
@@ -72,25 +73,25 @@ IF "%CURRENT_SERVER%"=="%TARGET_SERVER%" (
|
|
|
72
73
|
ECHO [OK] Server config set
|
|
73
74
|
)
|
|
74
75
|
|
|
75
|
-
REM ---------- 3.
|
|
76
|
+
REM ---------- 3. Ask user for parameters ----------
|
|
76
77
|
ECHO.
|
|
77
78
|
ECHO ========================================
|
|
78
|
-
ECHO
|
|
79
|
+
ECHO Parameter Configuration
|
|
79
80
|
ECHO ========================================
|
|
80
81
|
|
|
81
|
-
SET /P "BASE_PORT
|
|
82
|
+
SET /P "BASE_PORT=Base port (--base-port) [default: 9222]: "
|
|
82
83
|
IF "%BASE_PORT%"=="" SET "BASE_PORT=9222"
|
|
83
84
|
|
|
84
|
-
SET /P "PORT_COUNT
|
|
85
|
+
SET /P "PORT_COUNT=Port count (--port-count) [default: 10]: "
|
|
85
86
|
IF "%PORT_COUNT%"=="" SET "PORT_COUNT=10"
|
|
86
87
|
|
|
87
|
-
REM ---------- 4.
|
|
88
|
+
REM ---------- 4. Start tt-help explore ----------
|
|
88
89
|
ECHO.
|
|
89
90
|
ECHO ========================================
|
|
90
|
-
ECHO
|
|
91
|
+
ECHO Starting tt-help explore
|
|
91
92
|
ECHO ========================================
|
|
92
|
-
ECHO
|
|
93
|
-
ECHO
|
|
94
|
-
ECHO
|
|
93
|
+
ECHO Base port: %BASE_PORT%
|
|
94
|
+
ECHO Port count: %PORT_COUNT%
|
|
95
|
+
ECHO Speed: stealth (slowest)
|
|
95
96
|
ECHO ========================================
|
|
96
97
|
tt-help explore stealth --base-port %BASE_PORT% --port-count %PORT_COUNT%
|