Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

fix #1780

daniel31x13692e13933968
diff --git a/packages/lib/safeFetch.ts b/packages/lib/safeFetch.ts
index 61baa50a..fc659a0d 100644
--- a/packages/lib/safeFetch.ts
+++ b/packages/lib/safeFetch.ts
@@ -72,7 +72,10 @@ function createAgent(target: URL) {
return new ProxyAgent(proxy.toString());
}
- const lookup = createSafeLookup();
+ const lookup =
+ process.env.ALLOW_PRIVATE_NETWORK_ACCESS === "true"
+ ? undefined
+ : createSafeLookup();
if (target.protocol === "http:") {
return new http.Agent({ lookup });