JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
[fix] add JIUWENSWARM_SKIP_NETWORK_CHECK env var to skip external network detection Refs:#1667
haowenzhong16ef18a9e97d0
diff --git a/jiuwenswarm/channels/tui/frontend/src/app-state.ts b/jiuwenswarm/channels/tui/frontend/src/app-state.tsindex b0abe0c994..1869af12e6 100644--- a/jiuwenswarm/channels/tui/frontend/src/app-state.ts+++ b/jiuwenswarm/channels/tui/frontend/src/app-state.ts@@ -236,6 +236,9 @@ function probeTcp(host: string, port: number, timeoutMs: number): Promise<boolea}async function hasExternalNetwork(): Promise<boolean> {+ if (process.env.JIUWENSWARM_SKIP_NETWORK_CHECK === "1" || process.env.JIUWENSWARM_SKIP_NETWORK_CHECK === "true") {+ return true;+ }const probes = [probeTcp("223.5.5.5", 53, 1500),probeTcp("114.114.114.114", 53, 1500),