From 953699c802ebf1a808c605d0d37a195d06026211 Mon Sep 17 00:00:00 2001 From: asmtron <49522124+asmtron@users.noreply.github.com> Date: Mon, 18 Jan 2021 20:03:27 +0000 Subject: [PATCH] fix ping for IPv6 (check network connectivity) --- bin/autoupdate.bat | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/autoupdate.bat b/bin/autoupdate.bat index 0dfbeed..a95b62c 100644 --- a/bin/autoupdate.bat +++ b/bin/autoupdate.bat @@ -7,7 +7,7 @@ REM ------------------------------------------------------------------- REM REM autoupdate.bat REM -REM Automatic RDP Wrapper installer and updater // asmtron (13-01-2021) +REM Automatic RDP Wrapper installer and updater // asmtron (18-01-2021) REM ------------------------------------------------------------------- REM Options: REM -log = redirect display output to the file autoupdate.log @@ -254,8 +254,9 @@ REM -------------------------------------------------------------------- REM Download up-to-date (alternative) version of rdpwrap.ini from GitHub REM -------------------------------------------------------------------- :update -REM check if network connection is available -ping -n 1 google.com | find "TTL=" >nul +echo [*] check network connectivity... +:netcheck +ping -n 1 google.com>nul if errorlevel 1 ( goto waitnetwork ) else ( @@ -266,7 +267,7 @@ echo [.] Wait for network connection is available... ping 127.0.0.1 -n 11>nul set /a retry_network_check=retry_network_check+1 REM wait for a maximum of 5 minutes -if %retry_network_check% LSS 30 goto update +if %retry_network_check% LSS 30 goto netcheck :download set /a github_location=github_location+1 echo.