
Classify and Validate Whether an Endpoint Is Strictly Local / Loopback
Source:R/container.R
is_loopback_endpoint.RdStrictly parses a runtime endpoint URL and verifies that it targets only the
local loopback interface (127.0.0.1, localhost, or [::1]), a local
Unix domain socket (unix:///...), or the built-in offline mock runtime
(mock://offline). Remote hosts, LAN IP addresses, wildcard binds
(0.0.0.0), userinfo spoofing (http://127.0.0.1@evil.com), and
unsupported schemes are rejected.