mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-09 00:33:20 +08:00
fix(feishu): honor NO_PROXY before proxying the long connection
webSocketProxyUrl() picks up https_proxy/HTTPS_PROXY/http_proxy/ HTTP_PROXY and forces the Feishu WSS long connection through the proxy, without consulting NO_PROXY/no_proxy. With a local proxy exported in the shell (Clash/V2Ray setups), every long-connection attempt is rejected by Feishu's server and the runtime force-closes and retries in a loop, so the bot never reaches a stable connected state. Resolve NO_PROXY/no_proxy for the long-connection endpoints (open.feishu.cn / open.larksuite.com) before falling back to the proxy env: exact host, parent-domain (.cn, feishu.cn) and * entries follow the common NO_PROXY semantics. - production.mjs: NO_PROXY gate in front of the proxy lookup - feishu-proxy.test.mjs: NO_PROXY exclusion and fallthrough cases - lib/index.js: regenerated host bundle
This commit is contained in:
parent
009f1abec9
commit
adc0a89f13
3 changed files with 351 additions and 217 deletions
513
lib/index.js
513
lib/index.js
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue