diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index b5cc636cf..695c9b354 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -3417,7 +3417,7 @@ void CServer::ConAddSqlServer(IConsole::IResult *pResult, void *pUserData) str_copy(Config.m_aUser, pResult->GetString(3), sizeof(Config.m_aUser)); str_copy(Config.m_aPass, pResult->GetString(4), sizeof(Config.m_aPass)); str_copy(Config.m_aIp, pResult->GetString(5), sizeof(Config.m_aIp)); - str_copy(Config.m_aBindaddr, Config.m_aBindaddr, sizeof(Config.m_aBindaddr)); + Config.m_aBindaddr[0] = '\0'; Config.m_Port = pResult->GetInteger(6); Config.m_Setup = pResult->NumArguments() == 8 ? pResult->GetInteger(7) : true; diff --git a/src/engine/shared/config_variables.h b/src/engine/shared/config_variables.h index 021fa3c97..bd794f9c8 100644 --- a/src/engine/shared/config_variables.h +++ b/src/engine/shared/config_variables.h @@ -257,7 +257,6 @@ MACRO_CONFIG_INT(SvSwap, sv_swap, 1, 0, 1, CFGFLAG_SERVER, "Enable /swap") MACRO_CONFIG_INT(SvUseSQL, sv_use_sql, 0, 0, 1, CFGFLAG_SERVER, "Enables MySQL backend instead of SQLite backend (sv_sqlite_file is still used as fallback write server when no MySQL server is reachable)") MACRO_CONFIG_INT(SvSqlQueriesDelay, sv_sql_queries_delay, 1, 0, 20, CFGFLAG_SERVER, "Delay in seconds between SQL queries of a single player") MACRO_CONFIG_STR(SvSqliteFile, sv_sqlite_file, 64, "ddnet-server.sqlite", CFGFLAG_SERVER, "File to store ranks in case sv_use_sql is turned off or used as backup sql server") -MACRO_CONFIG_STR(SvSqlBindaddr, sv_sql_bindaddr, 128, "", CFGFLAG_SERVER, "Address to bind the SQL connections to") #if defined(CONF_UPNP) MACRO_CONFIG_INT(SvUseUPnP, sv_use_upnp, 0, 0, 1, CFGFLAG_SERVER, "Enables UPnP support. (Requires -DCONF_UPNP=ON when compiling)")