cloudstorage: update remote if cloud server changes

If we can't reach the cloud server in the URL (which might come from the
settings or be passed in by the user), we try the alternative server(s).
If we end up changing servers, we need to update the remote that we have
already parsed from the URL.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2021-04-18 16:28:25 -07:00
parent 766f297bc4
commit 9620d11828
3 changed files with 26 additions and 14 deletions

View file

@ -138,7 +138,7 @@ extern "C" {
char *printGPSCoordsC(const location_t *loc);
bool getProxyString(char **buffer);
bool canReachCloudServer();
bool canReachCloudServer(const char **remote);
void updateWindowTitle();
void subsurface_mkdir(const char *dir);
char *get_file_name(const char *fileName);