Proxy settings: add advanced Qt proxy parity #594

Open
opened 2026-05-06 08:54:53 +00:00 by johnny9 · 2 comments
johnny9 commented 2026-05-06 08:54:53 +00:00 (Migrated from github.com)

Code Gap

QML proxy settings use combined address fields and basic proxy/Tor enablement. Qt exposes deeper proxy UI behavior that QML does not currently match.

Work Needed

  • Add separate proxy IP and port fields if desired for Qt parity.
  • Add IPv4, IPv6, and Tor reachability indicators.
  • Preserve previous disabled proxy values where Qt does.
  • Add tests for any advanced behavior selected for implementation.
<!-- migrated-from: https://github.com/johnny9/BitcoinCoreAppDevelopment/issues/52 --> ## Code Gap QML proxy settings use combined address fields and basic proxy/Tor enablement. Qt exposes deeper proxy UI behavior that QML does not currently match. ## Work Needed - Add separate proxy IP and port fields if desired for Qt parity. - Add IPv4, IPv6, and Tor reachability indicators. - Preserve previous disabled proxy values where Qt does. - Add tests for any advanced behavior selected for implementation.
jarolrod commented 2026-06-01 16:59:44 +00:00 (Migrated from github.com)

I’m working on a settings/onboarding QML branch that partially addresses this issue. This can be considered picked up for now; once the PR is ready, I’ll revisit whether it fully addresses this issue or whether follow-up work should remain tracked here.

I’m working on a settings/onboarding QML branch that partially addresses this issue. This can be considered picked up for now; once the PR is ready, I’ll revisit whether it fully addresses this issue or whether follow-up work should remain tracked here.
jarolrod commented 2026-11-05 18:05:02 +00:00 (Migrated from github.com)

There are two configuration-correctness cases to include in the proxy settings work. Both were reproduced on qt6 at d567e3eb2497, macOS / Qt 6.9.0, with the effective proxies checked through getnetworkinfo after restarting.

A per-network proxy cannot survive an off/on round trip.

  1. Configure proxy=127.0.0.1:9050=onion under [regtest] in bitcoin.conf. Core correctly applies it only to onion.
  2. Open Proxy settings. The switch is on, but the address includes =onion and the page reports “Per-network proxy values are not supported in this field.”
  3. Switch it off, save, and restart. The GUI writes "proxy": false, which disables the configured proxy list.
  4. Try switching it back on. Save is blocked because the preserved address still contains =onion.
  5. Remove =onion to make the field acceptable, save, and restart. IPv4, IPv6, onion and CJDNS now use that proxy, broadening the original onion-only configuration.

With multiple per-network proxy= lines, the page displays only the first entry. A plain proxy value passes the off/on control.

The displayed proxy can also disagree with the one Core actually uses. With proxy=127.0.0.1:9050 in bitcoin.conf, change the GUI field to 127.0.0.2:9051, save, and restart. The page shows the new address as active, but getnetworkinfo still reports 127.0.0.1:9050.

Core processes -proxy as a list: the config entry is applied after the non-negated GUI entry. QML reads it as a single setting, so its displayed value and override indication can disagree with Core's effective configuration. Core's list handling explains the result; QML needs to represent and edit it consistently.

The page should show the effective per-network configuration and preserve its scope when toggling it. Until it can edit these configurations correctly, showing them as read-only with an explanation would avoid saving a broader configuration or reporting an override that does not take effect.

There are two configuration-correctness cases to include in the proxy settings work. Both were reproduced on `qt6` at `d567e3eb2497`, macOS / Qt 6.9.0, with the effective proxies checked through `getnetworkinfo` after restarting. **A per-network proxy cannot survive an off/on round trip.** 1. Configure `proxy=127.0.0.1:9050=onion` under `[regtest]` in `bitcoin.conf`. Core correctly applies it only to onion. 2. Open Proxy settings. The switch is on, but the address includes `=onion` and the page reports “Per-network proxy values are not supported in this field.” 3. Switch it off, save, and restart. The GUI writes `"proxy": false`, which disables the configured proxy list. 4. Try switching it back on. Save is blocked because the preserved address still contains `=onion`. 5. Remove `=onion` to make the field acceptable, save, and restart. IPv4, IPv6, onion and CJDNS now use that proxy, broadening the original onion-only configuration. With multiple per-network `proxy=` lines, the page displays only the first entry. A plain proxy value passes the off/on control. **The displayed proxy can also disagree with the one Core actually uses.** With `proxy=127.0.0.1:9050` in `bitcoin.conf`, change the GUI field to `127.0.0.2:9051`, save, and restart. The page shows the new address as active, but `getnetworkinfo` still reports `127.0.0.1:9050`. Core processes `-proxy` as a list: the config entry is applied after the non-negated GUI entry. QML reads it as a single setting, so its displayed value and override indication can disagree with Core's effective configuration. Core's list handling explains the result; QML needs to represent and edit it consistently. The page should show the effective per-network configuration and preserve its scope when toggling it. Until it can edit these configurations correctly, showing them as read-only with an explanation would avoid saving a broader configuration or reporting an override that does not take effect.
Sign in to join this conversation.
No description provided.