clfail fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7640 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -1270,6 +1270,7 @@ void clearservers()
|
||||
extern char *global_name;
|
||||
bool cllock = false, clfail = false;
|
||||
|
||||
extern long long unsigned gma(long long unsigned w);
|
||||
struct resolver_data
|
||||
{
|
||||
int timeout, starttime;
|
||||
@@ -1299,7 +1300,7 @@ void retrieveservers(vector<char> &data)
|
||||
if(mastertype == AC_MASTER_HTTP)
|
||||
{
|
||||
string request;
|
||||
sprintf(request, "http://%s/retrieve.do?action=list&name=%s&version=%d&build=%d", mastername, global_name, AC_VERSION, getbuildtype()|(1<<16));
|
||||
sprintf(request, "http://%s/retrieve.do?action=list&name=%s&version=%d&build=%d&key=%llu", mastername, global_name, AC_VERSION, getbuildtype()|(1<<16), gma(AC_VERSION));
|
||||
|
||||
const char *tmpname = findfile(path("config/servers.cfg", true), "wb");
|
||||
FILE *outfile = fopen(tmpname, "w+");
|
||||
@@ -1336,6 +1337,7 @@ void retrieveservers(vector<char> &data)
|
||||
{
|
||||
clfail = true;
|
||||
}
|
||||
else clfail = false;
|
||||
|
||||
if(!result && httpresult == 200)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user