ViaVersion / VIAaaS

ViaVersion as a Service - standalone ViaVersion proxy

Home Page:https://viaversion.github.io/VIAaaS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add ability to specify one single server to proxy.

ayunami2000 opened this issue · comments

I only want to use this to proxy one server. The server specified by the client is through bungeecord, so the hostname is wrong. So I need it to proxy one server only (no need for authentication in my case either). Is this possible to add in? (For now I will be building this by hand with the changes I need for my use case)

ok from my nonexistent kotlin knowledge i put this together locally (theres also an extra line in the config handler file for it) I know it lacks checks like incase it isnt a valid ip:port buuuut it shhhouuuuuld do the trick
image

ok im also going to make my build assume version incase it cant detect it, bc my "server" is a custom server written with mcprotocollib

edit: looks like it already has a fallback, its just my server being custom thats causing this 2nd issue lol, ill add a config value so that it can be specified what this fallback value is

Let me know if you want me to put what i changed here, but what I changed wasn't much. However, I would like for it to be in the main builds as I would think it would benefit a lot of people (or at least, me over multiple updates). But in any case I feel that these changes would be helpful to multiple people.

it can be used on bungeecord now: #201