Default port is now 1984 everywhere

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YShymaPrXmc3KYRUg2HMSs
This commit is contained in:
ariandClaude Sonnet 5.5 committed 2026-10-16 11:18:47 -04:00
1 parent dbe8a8d4e0
commit bdccace271
9 files changed
+35 -35

No files matched your search

+3 -3
View File
@@ -181,7 +181,7 @@ fn allowed_hosts(c: &Config) -> Arc<Vec<String>> {
Arc::new(v)
}
/// Strip an optional port and IPv6 brackets: `[::1]:9109` -> `::1`.
/// Strip an optional port and IPv6 brackets: `[::1]:1984` -> `::1`.
fn host_only(h: &str) -> &str {
let h = h.trim();
if let Some(rest) = h.strip_prefix('[') {
@@ -217,8 +217,8 @@ mod tests {
#[test]
fn host_parsing() {
assert_eq!(host_only("localhost:9109"), "localhost");
assert_eq!(host_only("[::1]:9109"), "::1");
assert_eq!(host_only("localhost:1984"), "localhost");
assert_eq!(host_only("[::1]:1984"), "::1");
assert_eq!(host_only("::1"), "::1");
assert_eq!(host_only("10.0.0.5"), "10.0.0.5");
}