Skip to main content

server_url

Function server_url 

Source
pub fn server_url() -> Option<String>
Expand description

huddle 0.8: optional override for the centralized server (a Tor-onion relay) WebSocket URL, read from config.toml:

server_url = "ws://<your-onion>.onion:80/ws"

Precedence is resolved by the caller (main.rs): the --server CLI flag wins, then this config value, then the baked-in default onion. So you can repoint the client at a different relay without recompiling or retyping a flag every launch. Returns None if absent.