use netstat oan and findstr in router up check because it's magnitudes faster

This commit is contained in:
idk
2022-05-18 18:06:12 -04:00
parent 17f2c8bdae
commit c10cf6aaeb

View File

@@ -5,7 +5,7 @@ call "%MYPATH%common.bat"
echo "check if I2P is already running"
::only launch I2P if the proxy is not up on 4444
netstat /o /a | find /i "listening" | find ":4444" >nul 2>nul && (
netstat /o /a /n | findstr "LISTENING" | findstr "4444" >nul 2>nul && (
echo "I2P is already running, not launching"
) || (
echo "I2P is not running, launching"