Skip to main content

read_stun_config

Function read_stun_config 

Source
pub(crate) fn read_stun_config<'a>(
    host_buf: &'a mut [u8; 253],
    port_out: &mut u16,
) -> &'a str
Expand description

Read STUN configuration from /net/stun-config.

Accepted formats (newline-terminated): host — uses DEFAULT_STUN_PORT host:port — overrides both host and port

On any parse or I/O error the defaults are returned unchanged.