snoop: connect notice includes port, sni and account (present fields only)

This commit is contained in:
Jean Chevronnet 2026-08-25 00:06:22 +00:00
parent a587d25873
commit 6e8d6c31fb
No known key found for this signature in database
GPG key ID: 439666D63A9477E4
6 changed files with 28 additions and 6 deletions

View file

@ -231,6 +231,7 @@ pub struct User {
pub secure: bool, // connected over TLS (drives WHOIS 671 / sslinfo)
pub certfp: Option<String>, // TLS client-cert fingerprint (SASL EXTERNAL / CertFP)
pub tls_info: Option<String>, // negotiated TLS version/group/cipher (WHOIS 671)
pub sni: Option<String>, // TLS SNI hostname the client requested (connect notice)
pub brand_server: Option<String>, // per-SNI display server name (None = global)
pub brand_network: Option<String>, // per-SNI display network name (None = global)
pub account: Option<String>, // logged-in account name (set by services)