From b151b70cb9c98d76d11fe299a476eda64b8ccad1 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Tue, 19 Aug 2025 11:02:29 +0800 Subject: [PATCH] fix: don't proxy network connection from Tailscale IP addresses, closes #1834 (#1835) --- .gitignore | 3 +++ apps/readest-app/src/utils/network.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 0ffd8f53..2ce661ff 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,6 @@ next-env.d.ts target fastlane/report.xml + +*.koplugin.zip + diff --git a/apps/readest-app/src/utils/network.ts b/apps/readest-app/src/utils/network.ts index 124b2bd8..77ea8c6b 100644 --- a/apps/readest-app/src/utils/network.ts +++ b/apps/readest-app/src/utils/network.ts @@ -34,6 +34,9 @@ export const isLanAddress = (url: string) => { // 169.254.0.0/16 (link-local addresses) if (a === 169 && b === 254) return true; + + // Tailscale IPv4 range: 100.64.0.0/10 (100.64.0.0 to 100.127.255.255) + if (a === 100 && b >= 64 && b <= 127) return true; } // Check for IPv6 private addresses (simplified check)