rainbow: empty default server config
This commit is contained in:
parent
dc41bf3a75
commit
c0e1b86eda
|
@ -99,12 +99,12 @@ BrokeStudioFirmware::BrokeStudioFirmware() {
|
||||||
|
|
||||||
// Get default host/port
|
// Get default host/port
|
||||||
char const* hostname = ::getenv("RAINBOW_SERVER_ADDR");
|
char const* hostname = ::getenv("RAINBOW_SERVER_ADDR");
|
||||||
if (hostname == nullptr) hostname = "localhost";
|
if (hostname == nullptr) hostname = "";
|
||||||
this->server_settings_address = hostname;
|
this->server_settings_address = hostname;
|
||||||
this->default_server_settings_address = hostname;
|
this->default_server_settings_address = hostname;
|
||||||
|
|
||||||
char const* port_cstr = ::getenv("RAINBOW_SERVER_PORT");
|
char const* port_cstr = ::getenv("RAINBOW_SERVER_PORT");
|
||||||
if (port_cstr == nullptr) port_cstr = "1235";
|
if (port_cstr == nullptr) port_cstr = "0";
|
||||||
std::istringstream port_iss(port_cstr);
|
std::istringstream port_iss(port_cstr);
|
||||||
port_iss >> this->server_settings_port;
|
port_iss >> this->server_settings_port;
|
||||||
this->default_server_settings_port = this->server_settings_port;
|
this->default_server_settings_port = this->server_settings_port;
|
||||||
|
|
Loading…
Reference in New Issue