Skip to main content

cleartext_connect_allowed

Function cleartext_connect_allowed 

Source
pub fn cleartext_connect_allowed(
    addr: SocketAddr,
    tls_enabled: bool,
    allow_insecure: bool,
) -> bool
Expand description

Whether a cleartext client connection to addr is permitted.

  • TLS enabled → always allowed
  • Cleartext to loopback → allowed (local dev)
  • Cleartext to non-loopback → only when allow_insecure is set