Private
Public Access
1
0

fix: rustfmt formatting for tracing::warn! macro in enrollment.rs
All checks were successful
CI Pipeline / Rust Format Check (push) Successful in 3s
CI Pipeline / Clippy Lints (push) Successful in 53s
CI Pipeline / Rust Unit Tests (push) Successful in 1m11s
CI Pipeline / Security Audit (push) Successful in 3s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 14s
CI Pipeline / Build .deb & Release (push) Successful in 3m53s

This commit is contained in:
2026-05-18 00:35:45 +00:00
parent 024e800708
commit 6046dd199c

View File

@ -47,7 +47,9 @@ async fn enroll_host(
.and_then(|h| h.split(',').next()) .and_then(|h| h.split(',').next())
.and_then(|h| h.trim().parse::<IpAddr>().ok()) .and_then(|h| h.trim().parse::<IpAddr>().ok())
.unwrap_or_else(|| { .unwrap_or_else(|| {
tracing::warn!("No X-Forwarded-For header found for enrollment request from public endpoint"); tracing::warn!(
"No X-Forwarded-For header found for enrollment request from public endpoint"
);
// Default to a placeholder IP since we can't extract the socket addr without the ConnectInfo layer // Default to a placeholder IP since we can't extract the socket addr without the ConnectInfo layer
"0.0.0.0".parse().unwrap() "0.0.0.0".parse().unwrap()
}); });