Skip to main content

bind_addr

Function bind_addr 

Source
pub fn bind_addr() -> String
Expand description

Returns the bind address for the HTTP server adapter.

The adapter reads TRUSS_BIND_ADDR when it is present, and falls back to 127.0.0.1:8080. This is the only way to learn the address truss would bind, since serve_with_config takes a listener the caller has already bound.