Conversation
bradfitz
reviewed
Sep 18, 2026
Signed-off-by: Atirna <288419661+atirna@users.noreply.github.com>
Port 1 stays the default (the destination-less dial port), but the socket can now be served on any port: --unix-socket=/run/x/socket,8022.
atirna
force-pushed
the
feat/serve-unix-sockets
branch
from
September 19, 2026 20:16
9f8c01b to
be4b69e
Compare
Author
|
added: --unix-socket now takes an optional ,port suffix (port 1 stays the default), the packet filter and dispatch key on the parsed port, and the README shows the forward command for reaching a custom port. ,8022 with an empty pathname is rejected at startup. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tailcat serve --unix-socket=<path>for a local Unix-domain stream socket.Why
This lets a local Unix-socket service be reached directly without first exposing it on a TCP port.
Testing
mainhas no--unix-socketserve option.go test ./cmd/tailcat -run '^TestServeUnixSocket$' -count=1Fixes #93