move default api_server

This commit is contained in:
Menche 2016-07-28 10:43:51 -07:00
parent 56687cdb83
commit 7cbdd101db
3 changed files with 3 additions and 3 deletions

View File

@ -161,7 +161,7 @@ void set_default_settings(Settings *settings)
settings->setDefault("enable_tnt", "true");
settings->setDefault("unsafe_fire", "false");
settings->setDefault("api_server", "api.voxelands.com");
settings->setDefault("api_server", "servers.voxelands.com");
#ifdef SERVER
settings->setDefault("api_announce","true");
#else

View File

@ -597,7 +597,7 @@ bool GUIMultiplayerMenu::OnEvent(const SEvent& event)
bool GUIMultiplayerMenu::fetchServers()
{
char* u = const_cast<char*>("/list");
char* u = const_cast<char*>("/list.cgi");
std::string data = http_request(NULL,u);
std::string path = getPath("","servers.txt",false);

View File

@ -996,7 +996,7 @@ void Server::start(unsigned short port)
// Announce game server to api server
if (g_settings->getBool("api_announce")) {
std::string url("/announce");
std::string url("/announce.cgi");
std::string post("");
std::string pre("");
std::string sn = g_settings->get("server_name");