Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] VirtualHost allow for 'contains with *' #132

Closed
ghost opened this issue Apr 9, 2023 · 1 comment · Fixed by #167
Closed

[Feature Request] VirtualHost allow for 'contains with *' #132

ghost opened this issue Apr 9, 2023 · 1 comment · Fixed by #167
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Apr 9, 2023

Is your feature request related to a problem? Please describe.
I am having an issue where I am using TCPShield pointing to the same backend with different domain names. I am trying to set up a virtual host however TCPShield sends requests in as "play.domain.com///127.0.0.1:25565/////:25565`. The random characters make it impossible to designate a selection.

Describe the solution you'd like
I would like to be able to change the format for plugin_settings.conf from the following:
Format is "hostname:port"="configName|default"
to
hostname:port or "hostname*", having the star * representing containing "string match + whatever else".

Describe alternatives you've considered
I am not sure of any alternatives.

Additional context

Example output

[05:04:30 INFO] [minimotd-velocity]: [virtual-host-debug] Virtual Host: 'play.polarismc.io///127.0.0.1:25565///1681016669///MGQCMAW5X13a9cF5ysnWdrBLovH4wfVu60l7eBUwWsCI8vw0cuZ9aj+UM7+y1wC//qGHngIwRsCke7eCpO99HTHOVdvZKjx9G0E51ALqRFGWH7kxMhVKYNF2IfMaT1FfbS0/D0du:25565', Selected Config: 'default'
@ghost ghost added the enhancement New feature or request label Apr 9, 2023
@ghost
Copy link
Author

ghost commented Apr 9, 2023

This should be able to be adjusted here

return this.virtualHostConfigs.get(host.toLowerCase(Locale.ENGLISH));
by writing a method to check to check for "domain.com*:port"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants