mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-01 02:02:33 +01:00
The network troubleshooting page read core.obpMdnsEmulator regardless of the selected trainer app. Rouvy never speaks OpenBikeControl — its method is the Click server behind core.rouvyMdnsEmulator (advertised over _wahoo-fitness-tnp._tcp as "BikeControl") — so a Rouvy rider saw "methodListening=fail reason=not started" and "We found what's blocking the connection" while the Click server was listening and Rouvy was connected through it. The restart fix restarted OBC, a server Rouvy never looks at, and the connected gating never noticed a live Rouvy link. - NetworkProbeContext gains methodServerLabel / methodPreferredPort (defaulting to OpenBikeControl / 36867, so existing callers and tests keep their behaviour). - methodListeningCheck and tcpSelfConnectCheck match on those instead of the hard-coded label and port; defaultTcpProbe takes the label too. - New NetworkMethodTarget resolver: obpMdns → OBC, else rouvyMdns → the Click server (36860), else zwiftMdns → DirCon (36866), else OBC. It exposes started/connected, the backend (platformDefault for Click and DirCon, which always register through the in-process advertiser), the advertised hostname (responder host label, null otherwise), a restart and the failure message. - buildProductionContext, the page's connected refusal / fix gating, and runNetworkFix(restartMethod) go through the resolver. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>