added using hostname for high score server from setup file
authorHolger Schemel <info@artsoft.org>
Wed, 5 May 2021 08:50:23 +0000 (10:50 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 5 May 2021 08:50:23 +0000 (10:50 +0200)
src/files.c

index d5118422d940e2021debdd88ac70a7793830aaf3..dafea37167ee94680f5c6179c898cbab6d92f593 100644 (file)
@@ -8929,7 +8929,7 @@ static void DownloadServerScoreToCacheExt(struct HttpRequest *request,
                                          struct HttpResponse *response,
                                          int nr)
 {
-  request->hostname = API_SERVER_HOSTNAME;
+  request->hostname = setup.api_server_hostname;
   request->port     = API_SERVER_PORT;
   request->method   = API_SERVER_METHOD;
   request->uri      = API_SERVER_URI_GET;
@@ -9162,7 +9162,7 @@ static void UploadScoreToServerExt(struct HttpRequest *request,
 {
   struct ScoreEntry *score_entry = &scores.entry[scores.last_added];
 
-  request->hostname = API_SERVER_HOSTNAME;
+  request->hostname = setup.api_server_hostname;
   request->port     = API_SERVER_PORT;
   request->method   = API_SERVER_METHOD;
   request->uri      = API_SERVER_URI_ADD;