Skip to main content

is_loopback_host

Function is_loopback_host 

Source
pub(crate) fn is_loopback_host(host: &str) -> bool
Expand description

Returns true if host names the loopback interface.

Recognizes localhost, any address in 127.0.0.0/8, and ::1 (with or without URL-style brackets). Used by the SQL TLS defaults and by mz-deploy mcp to pick http:// vs https://.