Skip to content

Add support for unix domain sockets - #109

Merged
Tony133 merged 2 commits into
fastify:mainfrom
fenichelar:main
Sep 4, 2026
Merged

Add support for unix domain sockets#109
Tony133 merged 2 commits into
fastify:mainfrom
fenichelar:main

Conversation

@fenichelar

@fenichelar fenichelar commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Adds support for unix domain sockets (i.e., req.socket.remoteAddress is undefined).

Checklist

Signed-off-by: Alec Fenichel <alec.fenichel@transnexus.com>

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Tony133 Tony133 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Could you also update the README? It currently says that the returned array includes the socket address and that index 0 is the socket address. This is no longer accurate for Unix domain sockets after this change, since no socket address is included and the returned array can be empty.

Signed-off-by: Alec Fenichel <alec.fenichel@transnexus.com>
@fenichelar
fenichelar requested a review from Tony133 September 4, 2026 19:45

@Tony133 Tony133 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Tony133
Tony133 merged commit 90ece3b into fastify:main Sep 4, 2026
17 checks passed
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.

3 participants