Skip to content

Revert "Add support for unix domain sockets (#109)" - #111

Merged
Eomm merged 1 commit into
mainfrom
revert-unix-domain-sockets
Oct 10, 2026
Merged

Eomm merged 1 commit into
mainfrom
revert-unix-domain-sockets

Conversation

@gurgunday

Copy link
Copy Markdown
Member

This reverts commit 90ece3b.

Dropping a missing socket address from the result shifts every entry down by one, so @fastify/proxy-addr treats the last X-Forwarded-For entry as the socket address. Since 3.1.0, fastify's CI fails on test/trust-proxy.test.js ("trust proxy with number and null socket remoteAddress ignores forwarded headers"): request.ip is '1.1.1.1' instead of null. Reverting restores the behavior of 3.0.x and fixes fastify's CI.

This reverts commit 90ece3b.

Dropping a missing socket address from the result shifts every entry
down by one, so @fastify/proxy-addr treats the last X-Forwarded-For
entry as the socket address. Since 3.1.0, fastify's CI fails on
test/trust-proxy.test.js ("trust proxy with number and null socket
remoteAddress ignores forwarded headers"): request.ip is '1.1.1.1'
instead of null. Reverting restores the behavior of 3.0.x and fixes
fastify's CI.

Signed-off-by: Gürgün Dayıoğlu <hey@gurgun.day>
@gurgunday
gurgunday requested a review from a team October 10, 2026 13:11
@Eomm
Eomm merged commit 47d0177 into main Oct 10, 2026
20 checks passed
@Eomm
Eomm deleted the revert-unix-domain-sockets branch October 10, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants