From c10cf6aaeb8a967586ae17d9459205446bc96a14 Mon Sep 17 00:00:00 2001 From: idk Date: Wed, 18 May 2022 18:06:12 -0400 Subject: [PATCH] use netstat oan and findstr in router up check because it's magnitudes faster --- src/win/launchi2p.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/launchi2p.bat b/src/win/launchi2p.bat index 94917f6..af6dc35 100644 --- a/src/win/launchi2p.bat +++ b/src/win/launchi2p.bat @@ -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"