mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 11:28:22 +00:00
Instead of calling HttpClientManager.setDefaultProxyOnPort() directly inside the kmp-tor LISTENERS observer, collect _socksPort changes in a single long-lived coroutine (guarded by portCollectorStarted flag) so that any port change — including a circuit restart — automatically updates the OkHttp proxy. https://claude.ai/code/session_01JwcwxdYrDnr3QyHqTBz33a