forked from oerkki/voxelands
move default api_server
This commit is contained in:
parent
56687cdb83
commit
7cbdd101db
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue