From 53cf85cf0ef173087497616e182c5cb27fa384c4 Mon Sep 17 00:00:00 2001 From: swz-git Date: Sun, 21 Dec 2025 23:09:44 +0100 Subject: [PATCH] ping 1.1.1.1 (cloudflare) instead of github --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 824c1d3..dc12bbc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -210,7 +210,10 @@ fn update_binary( } fn is_online() -> bool { - TcpStream::connect("github.com:80").is_ok() + // Used to be github.com:80, but this resulted in some pcs failing to + // connect resulting in this returning false. Using 1.1.1.1 should skip + // dns (one possible reason) and since its cloudflare, it should be up 🤞 + TcpStream::connect("1.1.1.1:80").is_ok() } fn pause() {