fix: normalize_host handles IPv6 bracket notation

Extract strip_port_from_host into shared utils module and update normalize_host to properly strip brackets from IPv6 addresses like [::1]:443 -> ::1 instead of incorrectly using split(':').next().
This commit is contained in:
2026-06-12 04:40:43 +00:00
parent d7f811ffb5
commit 42c721e954
4 changed files with 78 additions and 40 deletions

View File

@@ -8,3 +8,4 @@ pub mod rate_limit;
pub mod server;
pub mod shutdown;
pub mod tls;
pub mod utils;