feat(server): Resolved header #116

Merged
treadful merged 6 commits from fix/remote-addr into main 2026-06-10 21:34:38 +00:00
Owner

Adds server support for resolving clients by Resolved header, for servers behind a friendly reverse proxy.

Adds server support for resolving clients by Resolved header, for servers behind a friendly reverse proxy.
fix: missing Cargo.lock updates
Some checks failed
/ test-and-check (pull_request) Failing after 9m10s
f2a4c4dff2
chore(devops): move to rust nightly and update alpine image
All checks were successful
/ test-and-check (pull_request) Successful in 21m1s
a2d43929c3
@ -19,0 +12,4 @@
pub fn request_address(context: &RequestContext) -> Option<IpAddr> {
let mut resolved: Option<IpAddr> = None;
if *context.is_proxied {
Author
Owner

maybe add a note that this is the trust gate. The user has explicitly requested jot to trust the Forwarded header.

maybe add a note that this is the trust gate. The user has explicitly requested jot to trust the `Forwarded` header.
treadful marked this conversation as resolved
@ -19,0 +60,4 @@
if resolved.is_some() {
resolved
} else {
match context.req.remote_addr() {
Author
Owner

another note that this is the fallback?

another note that this is the fallback?
treadful marked this conversation as resolved
docs: minor docstrings describing logic
All checks were successful
/ test-and-check (pull_request) Successful in 2m55s
08665200eb
cleanup(server): mostly compiler warnings
Some checks failed
/ test-and-check (pull_request) Failing after 2m34s
65c866641e
chore(server): cleanup server tests for headers module
All checks were successful
/ test-and-check (pull_request) Successful in 2m51s
44b9f9541d
treadful deleted branch fix/remote-addr 2026-06-10 21:34:38 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
treadful/jot!116
No description provided.