mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-08 23:54:39 +00:00
The consolidation passed `useProxy = true` for every brokered `resource.bytes` fetch, forcing them through Tor whenever Tor was active — regardless of the napplet/nSite's actual network mode. That overrides the user's explicit choice: an nSite running in "open web" mode would still have its blob fetches tunneled, inconsistent with how its own WebView page loads. The authoritative per-applet preference already exists main-side in NappletNetworkRegistry.useTor(coordinate) (locked napplets pinned to Tor; nSites follow the persisted per-site toggle, which relaunches on change) — the same source NappletLauncher reads to set the WebView proxy. Thread the calling applet's coordinate through NappletResourceGateway.fetch so the broker can resolve it, and pick the shared client with getHttpClient(useProxy = NappletNetworkRegistry.useTor(coordinate)). This mirrors the host's own `effectiveProxy = if (useTor) proxyPort else -1` exactly, so a brokered fetch now routes like the applet's page. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>