ogame icon indicating copy to clipboard operation
ogame copied to clipboard

optimize replaceHostname with Regxp

Open 0xE232FE opened this issue 1 year ago • 0 comments

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 avatar May 19 '23 11:05 0xE232FE