PaperMC / Velocity

The modern, next-generation Minecraft server proxy.
https://papermc.io/software/velocity
GNU General Public License v3.0
1.78k stars 625 forks source link

Query Passing #1420

Open BiraruYT opened 2 months ago

BiraruYT commented 2 months ago

Requested Feature

Query Passing will allow the proxy to allow the query of the backend server to pass through so example i query the proxy, with my forced host so instead of giving the proxy's query info it should give the backends query info. this could be enabled like the description passthrough

Why is this needed?

It would be helpful because if you wanted to query or for some reason wanted yours player to query your server it could be used for that

Alternative Solutions

in the query section of the config there could be a section where it was a list of servers which were allowed and if it was empty it would show the proxy's query, the servers that were not allowed would still have the proxy's query info showed

Additional Information

No response

electronicboy commented 2 months ago

query protocol does not support 'forced hosts', this would also require the PR which changes the format of how servers are defined. I just can't really see us implementing this

BiraruYT commented 2 months ago

Local servers?

electronicboy commented 2 months ago

Not sure what you mean by that, I mean that we'd only be able to proxy to 1 server, or maybe use the default try list, we cannot route the request to servers based on the hostname as that is not sent to the server in the GS4 query protocol

astei commented 2 months ago

As @electronicboy said, the query protocol doesn't support "forced hosts", so we'd need to use the default try list for query pings.

It should be possible for support to be added, but this doesn't feel like a high-leverage thing. PRs welcome, though!