From 115bbf4145597bfe4a7b76b711411a13bf619fbe Mon Sep 17 00:00:00 2001 From: Mark Pashmfouroush Date: Mon, 3 Jun 2024 15:04:28 +0100 Subject: [PATCH] warp: use different connection test endpoint Signed-off-by: Mark Pashmfouroush --- app/app.go | 1 - app/wg.go | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/app.go b/app/app.go index 6fd9f05e7..95280c425 100644 --- a/app/app.go +++ b/app/app.go @@ -17,7 +17,6 @@ import ( const singleMTU = 1330 const doubleMTU = 1280 // minimum mtu for IPv6, may cause frag reassembly somewhere -const connTestEndpoint = "http://1.1.1.1:80/" type WarpOptions struct { Bind netip.AddrPort diff --git a/app/wg.go b/app/wg.go index 23f7e91b7..ce3794c0f 100644 --- a/app/wg.go +++ b/app/wg.go @@ -16,6 +16,8 @@ import ( "github.com/bepass-org/warp-plus/wiresocks" ) +const connTestEndpoint = "https://www.gstatic.com/generate_204" + func newUsermodeTun(conf *wiresocks.Configuration) (wgtun.Device, *netstack.Net, error) { tunDev, tnet, err := netstack.CreateNetTUN(conf.Interface.Addresses, conf.Interface.DNS, conf.Interface.MTU) if err != nil {