Skip to main content

refuse_open_bind

Function refuse_open_bind 

Source
pub fn refuse_open_bind(
    bind_addr: IpAddr,
    auth_token: Option<&str>,
    allow_no_token: bool,
) -> Result<()>
Expand description

The bind guard (0.7.1). With no bearer token a served wallet answers any caller that can reach it, and its two BEEF doors take a body of any size (0.7.0), so an address beyond loopback needs a token or the operator’s explicit allow_no_token. An empty token counts as none. Loopback is unchanged. Run at startup, before the wallet is opened or a socket bound.