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
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:
@ -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()
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user