From 36804444691752cc9ba549c012f8f8a98b4c005e Mon Sep 17 00:00:00 2001 From: Ginder Singh Date: Sun, 3 May 2026 17:49:25 -0400 Subject: [PATCH] ignore network check. --- internal/net/net.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/internal/net/net.go b/internal/net/net.go index f4b5586..a6b0605 100644 --- a/internal/net/net.go +++ b/internal/net/net.go @@ -7,6 +7,7 @@ import ( "net" "os" "os/signal" + "runtime" "sync" "sync/atomic" "syscall" @@ -89,6 +90,15 @@ func supportListenIPv6Local() bool { } func probeStack() { + // On Android, skip network probing to avoid blocking the VPN service initialization. + // Android VPN services manage their own network state and will fail gracefully + // if network is unavailable when actual DNS queries are made. + if runtime.GOOS == "android" { + hasNetworkUp = true + canListenIPv6Local = false + return + } + ctx, cancel := context.WithCancel(context.Background()) defer cancel()