diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-04 01:47:45 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-04 01:47:45 +0200 |
| commit | 5022f2be149e40ac5bdd5fc362e926f3edcf44f0 (patch) | |
| tree | d202f7a557e6d5ac5a6e8409ab1c8cadac39be05 /docs/captcha.md | |
| parent | 2e819f7c5e0fb6352908ca88ff09b3465023767c (diff) | |
| download | meshbay-5022f2be149e40ac5bdd5fc362e926f3edcf44f0.tar.gz | |
fix(client): resolve STUN hostnames in the main process
Chromium's P2P socket manager failed every STUN hostname with
ERR_NAME_NOT_RESOLVED in a restricted-resolver environment (a Windows KVM
guest), even though its own general network stack, the OS resolver and
Node's resolver all resolved the same names -- and mapping the names to IPs
with --host-resolver-rules changed nothing, so it is not ordinary
resolution. WebRTC was left with no server-reflexive candidate.
The desktop client now resolves the STUN hostnames in the main process
(`ice:resolve-stun`, Node's dns.resolve4) and hands `transport.js` the
IP form; a name that will not resolve (the decommissioned Mozilla host) is
dropped. In a browser there is no `meshbay` bridge and the hostnames are
used unchanged -- a browser resolves them fine, so that path is untouched.
Falls back to the hostname form if the bridge call throws.
Also, scoped to win32: disable WebRtcHideLocalIpsWithMdns, so the client
publishes its real local IP instead of a `.local` name the node's ICE stack
cannot resolve across the KVM bridge. Changes nothing on Linux/macOS.
Test-env workaround, revisit before release.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'docs/captcha.md')
0 files changed, 0 insertions, 0 deletions