Skip to content

Add unix domain socket support#1780

Open
Beaness wants to merge 5 commits into
PaperMC:dev/3.0.0from
PvPRivals:feat/domainsocket
Open

Add unix domain socket support#1780
Beaness wants to merge 5 commits into
PaperMC:dev/3.0.0from
PvPRivals:feat/domainsocket

Conversation

@Beaness

@Beaness Beaness commented Apr 24, 2026

Copy link
Copy Markdown

Deprecates ServerInfo#getAddress and errors if it is a unix domain socket, current velocity proxies setups should remain working.
Adds a new method ServerInfo#getSocketAddress as alternative.

Based on #991, #422, b003890, b003890

@Beaness Beaness force-pushed the feat/domainsocket branch from 98bef58 to b841ab0 Compare April 24, 2026 11:34
Comment thread proxy/src/main/java/com/velocitypowered/proxy/network/TransportType.java Outdated
Beaness and others added 2 commits May 4, 2026 11:33
…tType.java

Co-authored-by: BT <43831917+calcastor@users.noreply.github.com>
@WouterGritter

Copy link
Copy Markdown
Contributor

I wonder what your usecase for this feature is? I think the 'modern' go-to solution for a sort of 'anonymous'/intermediate proxy not exposed to the world would be to use Docker and Docker's networking.

@SirYwell

SirYwell commented May 6, 2026

Copy link
Copy Markdown

I wonder what your usecase for this feature is? I think the 'modern' go-to solution for a sort of 'anonymous'/intermediate proxy not exposed to the world would be to use Docker and Docker's networking.

Using Docker still allows using Unix Domain Sockets, and the performance will be (slightly) better most likely.

@Beaness

Beaness commented May 6, 2026

Copy link
Copy Markdown
Author

I wonder what your usecase for this feature is? I think the 'modern' go-to solution for a sort of 'anonymous'/intermediate proxy not exposed to the world would be to use Docker and Docker's networking.

I think most people would use this for better performance when having multiple servers on the same machine. As you said there are different (or even better) alternatives for networking security.

Comment thread proxy/src/main/java/com/velocitypowered/proxy/network/TransportType.java Outdated
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.

5 participants