Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.Add lookup for popular Domains Behind CF as endpoint and 2.Test Connection interrupts Every x second #68

Open
Economic-PunPun opened this issue Apr 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Economic-PunPun
Copy link

Economic-PunPun commented Apr 7, 2024

Hi I've tested warp-plus on Telecommunication Company of Iran and figured that using --scan isn't much effective and data transfer rate drops to zero soon or late after connection established. So I wrote this batch script to find clean ip and Determine connection interrupts. It first use nslookup to grab CF ip behind these two popular websites in iran : "tgju.org" and "zula.ir". then i've used curl to check connection every 20 seconds to determine connection interrupts with 4s timeout. if timeout reached and no response received, script uses killtask to terminate warp-plus.exe then use nslookup for another website in a loop....
Can you include these to warp-plus ?? this connection is way more Stable . Sorry For Bad English
`
@echo off
setlocal enabledelayedexpansion
:start
for /f "tokens=2 delims=: " %%a in ('nslookup -q=A tgju.org ^| findstr /R "^Addresses: [0-9].[0-9].[0-9].[0-9]$"') do (
set ip=%%a
goto :break
)
:break
start /b warp-plus.exe -e !ip!:890
timeout /t 5
goto :loop
:start2
for /f "tokens=2 delims=: " %%a in ('nslookup -q=A zula.ir ^| findstr /R "^Addresses: [0-9].[0-9].[0-9].[0-9]$"') do (
set ip=%%a
goto :break2
)
:break2
start /b warp-plus.exe -e !ip!:880
timeout /t 5
goto :loop2

:loop
curl --proxy 127.0.0.1:8086 --max-time 4 http://gstatic.com/generate_204
if %errorlevel% neq 0 (
echo Connection failed
taskkill /F /IM warp-plus.exe
goto :start2
) else (
echo Connection successful
)
timeout /t 20 /nobreak
goto :loop
:loop2
curl --proxy 127.0.0.1:8086 --max-time 4 http://gstatic.com/generate_204
if %errorlevel% neq 0 (
echo Connection failed
taskkill /F /IM warp-plus.exe
goto :start
) else (
echo Connection successful
)
timeout /t 20 /nobreak
goto :loop2
`

@markpash
Copy link
Member

This is an interesting idea! So if I understand correctly, the issue is that when scan is used you only know if IP is working on the first few minutes. After that, the IP may not be usable and must be switched. So what is desired is a system that actively tests the tunnel to see if it's healthy, and if not, scan for a new IP and reconnect.

@markpash markpash added the enhancement New feature or request label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants