Custom instance URL ignored - tunnel always connects to holos.social #111
Labels
No labels
bug
contribution welcome
duplicate
enhancement
later
not planned
out of scope
question
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
tom79/Holos-App#111
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Hi! I tried setting up my own relay server and ran into an issue when attempting to connect from inside the app.
When you enter a custom relay instance on the welcome screen, OAuth login works correctly against that instance. But the WebSocket tunnel connection always goes to
wss://tunnel.holos.social/wsregardless of what you entered. Self-hosted relay instances can't establish a tunnel.Steps to Reproduce
Expected Behavior
The app should connect the WebSocket tunnel to the custom relay's tunnel endpoint, not holos.social.
Actual Behavior
The tunnel connection fails. The app always tries to connect to wss://tunnel.holos.social/ws regardless of which instance you entered.
Screenshots / Logs
No screenshots, but I traced through the code and found the root cause.
In
src/AppWithAuth.tsx:442, startOAuthServer is called with undefined for the tunnel URL parameter:In
src/services/NodeBridge.ts:470, that undefined falls through to the hardcoded default:tunnelServerUrl: tunnelServerUrl || 'wss://tunnel.holos.social/ws',The same undefined pattern exists in the other two call sites:
src/screens/TunnelSetupScreen.tsx:115src/components/ConnectionStatus.tsx:79Worth noting - OAuthService already has
hasTunnelSupport()andgetRelayTunnelUrl()(lines 336-348) that read the correct tunnel URL from the relay's NodeInfo. They're just never called by any of these callers.Environment