Skip to content

optimize replaceHostname with Regxp#143

Open
0xE232FE wants to merge 2 commits intoalaingilbert:developfrom
0xE232FE:alaingilbert-develop-20230519(2)
Open

optimize replaceHostname with Regxp#143
0xE232FE wants to merge 2 commits intoalaingilbert:developfrom
0xE232FE:alaingilbert-develop-20230519(2)

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