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

+5 -5
View File
@@ -835,7 +835,7 @@ mod tests {
cfg.server.allowed_origins = vec!["https://mon.example.com".into()];
let st = fake_state(cfg);
assert!(allowed_hosts(&st).contains(&"mon.example.com".to_string()));
assert!(allowed_origins(&st).contains(&"http://localhost:9109".to_string()));
assert!(allowed_origins(&st).contains(&"http://localhost:1984".to_string()));
assert!(allowed_origins(&st).contains(&"https://mon.example.com".to_string()));
let _svc = service(st);
}
@@ -846,8 +846,8 @@ mod tests {
cfg.server.tls.enabled = true;
let st = fake_state(cfg);
let o = allowed_origins(&st);
assert!(o.contains(&"https://localhost:9109".to_string()));
assert!(o.contains(&"https://127.0.0.1:9109".to_string()));
assert!(o.contains(&"https://localhost:1984".to_string()));
assert!(o.contains(&"https://127.0.0.1:1984".to_string()));
assert!(!o.iter().any(|x| x.starts_with("http://")));
}
@@ -883,14 +883,14 @@ mod tests {
b.body(Body::from(body)).unwrap()
};
let r = svc
.call(mk("localhost:9109", Some("http://evil.example")))
.call(mk("localhost:1984", Some("http://evil.example")))
.await
.unwrap();
assert_eq!(r.status(), StatusCode::FORBIDDEN);
let r = svc.call(mk("evil.example", None)).await.unwrap();
assert_eq!(r.status(), StatusCode::FORBIDDEN);
let r = svc
.call(mk("localhost:9109", Some("http://localhost:9109")))
.call(mk("localhost:1984", Some("http://localhost:1984")))
.await
.unwrap();
assert_ne!(r.status(), StatusCode::FORBIDDEN);