Skip to main content

build_server_url

Function build_server_url 

Source
pub fn build_server_url(
    listener_addr: SocketAddr,
    maybe_dns: Option<&str>,
) -> String
Expand description

Construct a server URL given the TcpListener::local_addr from by a server’s TcpListener, and its DNS name.

ex: https://lexe.app (port=443) ex: https://relay.lexe.app:4396 ex: http://[::1]:8080