Skip to main content

is_loopback_bind

Function is_loopback_bind 

Source
pub fn is_loopback_bind(bind: &str) -> bool
Expand description

True when bind is a loopback/desktop address, for which the per-IP DoS rate limiter (build_rate_limiter, #13) is intentionally SKIPPED. The desktop sidecar serves the local frontend, which legitimately bursts ~45 hashed /assets/* requests on load and would otherwise trip the 429 limit (burst default 20). Mirrors the loopback special-casing already used for CORS; network binds (0.0.0.0) are still throttled.