ogame
ogame copied to clipboard
optimize replaceHostname with Regxp
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.