From d27b92235aa967ac81105f2186b87c614d40c26d Mon Sep 17 00:00:00 2001 From: Tekin Tian Date: Mon, 28 Oct 2019 19:25:19 +0800 Subject: [PATCH 1/4] =?UTF-8?q?windows=20=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E7=AE=A1=E7=90=86=20bat=20=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 方便启动管理客户端 --- lanproxy_win_client_run.bat | 58 +++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 lanproxy_win_client_run.bat diff --git a/lanproxy_win_client_run.bat b/lanproxy_win_client_run.bat new file mode 100644 index 00000000..00550b22 --- /dev/null +++ b/lanproxy_win_client_run.bat @@ -0,0 +1,58 @@ +cls +@ECHO OFF +: 设置你的链接KEY即可 +SET LANPROXY_CLIENT_KEY=c5ab55cb0a7043f7b3de84820b48d5c7 +: LAN PROXY SERVER HOST +SET LANPROXY_SERVER_HOST=jp.cdjxt.net +: LAN PROXY SERVER PORT +SET LANPROXY_SERVER_PORT=5993 +: 以下配置不用修改 +SET LANPROXY_PATH=./ +SET LANPROXY_DIR=./ +color 0a +TITLE lanproxy Management +GOTO MENU +:MENU +CLS +ECHO. +ECHO. * * * * lanproxy Management * * * * * * * * * * * +ECHO. * * +ECHO. * 1 start * +ECHO. * * +ECHO. * 2 close * +ECHO. * * +ECHO. * 3 restart* +ECHO. * * +ECHO. * 4 exit * +ECHO. * * +ECHO. * * * * * * * * * * * * * * * * * * * * * * * * +ECHO. +ECHO.plase choose list: +set /p ID= +IF "%id%"=="1" GOTO cmd1 +IF "%id%"=="2" GOTO cmd2 +IF "%id%"=="3" GOTO cmd3 +IF "%id%"=="4" EXIT +PAUSE +:cmd1 +ECHO. +ECHO.start lanproxy...... +IF NOT EXIST %LANPROXY_DIR%client_windows_amd64.exe ECHO %LANPROXY_DIR%client_windows_amd64.exe不存在 +IF EXIST %LANPROXY_DIR% start %LANPROXY_DIR%client_windows_amd64.exe -s %LANPROXY_SERVER_HOST% -p %LANPROXY_SERVER_PORT% -k %LANPROXY_CLIENT_KEY% -ssl true +ECHO.OK +PAUSE +GOTO MENU +:cmd2 +ECHO. +ECHO.close lanproxy...... +taskkill /F /IM client_windows_amd64.exe > nul +ECHO.OK +PAUSE +GOTO MENU +:cmd3 +ECHO. +ECHO.close lanproxy...... +taskkill /F /IM client_windows_amd64.exe > nul +ECHO.OK +GOTO cmd1 +GOTO MENU From 5a88594ff098d4b1eda45677b8d8eb17e95493c9 Mon Sep 17 00:00:00 2001 From: Tekin Tian Date: Mon, 28 Oct 2019 19:27:02 +0800 Subject: [PATCH 2/4] Update lanproxy_win_client_run.bat --- lanproxy_win_client_run.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lanproxy_win_client_run.bat b/lanproxy_win_client_run.bat index 00550b22..0f7cdeb2 100644 --- a/lanproxy_win_client_run.bat +++ b/lanproxy_win_client_run.bat @@ -1,7 +1,7 @@ cls @ECHO OFF : 设置你的链接KEY即可 -SET LANPROXY_CLIENT_KEY=c5ab55cb0a7043f7b3de84820b48d5c7 +SET LANPROXY_CLIENT_KEY=你的CLIENTKEY放到这里即可 : LAN PROXY SERVER HOST SET LANPROXY_SERVER_HOST=jp.cdjxt.net : LAN PROXY SERVER PORT From f3dd0a7b9f3069725e6da6780526078078ec3ee8 Mon Sep 17 00:00:00 2001 From: Tekin Tian Date: Mon, 28 Oct 2019 19:27:42 +0800 Subject: [PATCH 3/4] Delete lanproxy_win_client_run.bat aaa --- lanproxy_win_client_run.bat | 58 ------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 lanproxy_win_client_run.bat diff --git a/lanproxy_win_client_run.bat b/lanproxy_win_client_run.bat deleted file mode 100644 index 0f7cdeb2..00000000 --- a/lanproxy_win_client_run.bat +++ /dev/null @@ -1,58 +0,0 @@ -cls -@ECHO OFF -: 设置你的链接KEY即可 -SET LANPROXY_CLIENT_KEY=你的CLIENTKEY放到这里即可 -: LAN PROXY SERVER HOST -SET LANPROXY_SERVER_HOST=jp.cdjxt.net -: LAN PROXY SERVER PORT -SET LANPROXY_SERVER_PORT=5993 -: 以下配置不用修改 -SET LANPROXY_PATH=./ -SET LANPROXY_DIR=./ -color 0a -TITLE lanproxy Management -GOTO MENU -:MENU -CLS -ECHO. -ECHO. * * * * lanproxy Management * * * * * * * * * * * -ECHO. * * -ECHO. * 1 start * -ECHO. * * -ECHO. * 2 close * -ECHO. * * -ECHO. * 3 restart* -ECHO. * * -ECHO. * 4 exit * -ECHO. * * -ECHO. * * * * * * * * * * * * * * * * * * * * * * * * -ECHO. -ECHO.plase choose list: -set /p ID= -IF "%id%"=="1" GOTO cmd1 -IF "%id%"=="2" GOTO cmd2 -IF "%id%"=="3" GOTO cmd3 -IF "%id%"=="4" EXIT -PAUSE -:cmd1 -ECHO. -ECHO.start lanproxy...... -IF NOT EXIST %LANPROXY_DIR%client_windows_amd64.exe ECHO %LANPROXY_DIR%client_windows_amd64.exe不存在 -IF EXIST %LANPROXY_DIR% start %LANPROXY_DIR%client_windows_amd64.exe -s %LANPROXY_SERVER_HOST% -p %LANPROXY_SERVER_PORT% -k %LANPROXY_CLIENT_KEY% -ssl true -ECHO.OK -PAUSE -GOTO MENU -:cmd2 -ECHO. -ECHO.close lanproxy...... -taskkill /F /IM client_windows_amd64.exe > nul -ECHO.OK -PAUSE -GOTO MENU -:cmd3 -ECHO. -ECHO.close lanproxy...... -taskkill /F /IM client_windows_amd64.exe > nul -ECHO.OK -GOTO cmd1 -GOTO MENU From 79ecb2f324225e95336f6e941e67a39a4ac8780f Mon Sep 17 00:00:00 2001 From: Tekin Tian Date: Mon, 28 Oct 2019 19:29:40 +0800 Subject: [PATCH 4/4] =?UTF-8?q?windows=20=E5=AE=A2=E6=88=B7=E7=AB=AFBAT?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 直接把这个bat和下载的客户端文件 client_windows_amd64.exe 放到一起,双击打开即可使用 --- lanproxy_win_client_run.bat | 58 +++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 lanproxy_win_client_run.bat diff --git a/lanproxy_win_client_run.bat b/lanproxy_win_client_run.bat new file mode 100644 index 00000000..0f7cdeb2 --- /dev/null +++ b/lanproxy_win_client_run.bat @@ -0,0 +1,58 @@ +cls +@ECHO OFF +: 设置你的链接KEY即可 +SET LANPROXY_CLIENT_KEY=你的CLIENTKEY放到这里即可 +: LAN PROXY SERVER HOST +SET LANPROXY_SERVER_HOST=jp.cdjxt.net +: LAN PROXY SERVER PORT +SET LANPROXY_SERVER_PORT=5993 +: 以下配置不用修改 +SET LANPROXY_PATH=./ +SET LANPROXY_DIR=./ +color 0a +TITLE lanproxy Management +GOTO MENU +:MENU +CLS +ECHO. +ECHO. * * * * lanproxy Management * * * * * * * * * * * +ECHO. * * +ECHO. * 1 start * +ECHO. * * +ECHO. * 2 close * +ECHO. * * +ECHO. * 3 restart* +ECHO. * * +ECHO. * 4 exit * +ECHO. * * +ECHO. * * * * * * * * * * * * * * * * * * * * * * * * +ECHO. +ECHO.plase choose list: +set /p ID= +IF "%id%"=="1" GOTO cmd1 +IF "%id%"=="2" GOTO cmd2 +IF "%id%"=="3" GOTO cmd3 +IF "%id%"=="4" EXIT +PAUSE +:cmd1 +ECHO. +ECHO.start lanproxy...... +IF NOT EXIST %LANPROXY_DIR%client_windows_amd64.exe ECHO %LANPROXY_DIR%client_windows_amd64.exe不存在 +IF EXIST %LANPROXY_DIR% start %LANPROXY_DIR%client_windows_amd64.exe -s %LANPROXY_SERVER_HOST% -p %LANPROXY_SERVER_PORT% -k %LANPROXY_CLIENT_KEY% -ssl true +ECHO.OK +PAUSE +GOTO MENU +:cmd2 +ECHO. +ECHO.close lanproxy...... +taskkill /F /IM client_windows_amd64.exe > nul +ECHO.OK +PAUSE +GOTO MENU +:cmd3 +ECHO. +ECHO.close lanproxy...... +taskkill /F /IM client_windows_amd64.exe > nul +ECHO.OK +GOTO cmd1 +GOTO MENU