Skip to main content

validate_proxy_port

Function validate_proxy_port 

Source
pub fn validate_proxy_port(port: i64) -> Result<()>
Expand description

Reject a proxy.port the proxy itself would refuse to listen on.

Every other reader of this setting — the listener, proxy doctor, the URL builder — rejects a value outside 1..=65535. Setup used to fall back to 443 instead, which meant configuring the machine for a port nothing will ever bind: a redirect to the standard port, or a capability granted, for a proxy that cannot start. Worse, that port went into the record, so undo would act on it too.