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

optimize replaceHostname with Regxp #143

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

0xE232FE
Copy link
Contributor

Set --api-new-hostname empty by default.

replaceHostnameWithRegxp will use the hostname which is set by --api-new-hostname parameter, but if it is empty string it will lookup the Hostname from the Request Header!

This makes it possible to access the Browser Endpoint "/game/index.php" from localhost, domain or even IP-Address.

0xE232FE added 2 commits May 19, 2023 13:02
Set --api-new-hostname empty by default.

replaceHostnameWithRegxp will use the hostname which is set by --api-new-hostname parameter, but if it is empty string it will lookup the Hostname from the Request Header!

This makes it possible to access the Browser Endpoint "/game/index.php" from localhost, domain or even IP-Address.
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.

1 participant