Skip to main content

api_url_is_local

Function api_url_is_local 

Source
pub fn api_url_is_local(url: &str) -> bool
Expand description

Returns true if the URL host resolves to a loopback address (localhost, 127.x, ::1). Used to gate warnings when a workspace config redirects inference to a remote host.