diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2021-04-16 12:55:05 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-04-19 12:51:01 -0700 |
commit | 766f297bc4c01b81ee11ceb724460240403068a1 (patch) | |
tree | b4cac2a274ccb80f2f5da6d80a5792965f88eeae /core/git-access.h | |
parent | fe074ccad153791b32c2f62af530091cb025cdee (diff) | |
download | subsurface-766f297bc4c01b81ee11ceb724460240403068a1.tar.gz |
cloudstorage: try alternative server if first connection fails
If we can't reach our preferred server, try using a different one.
The diff makes more sense when ignoring white space.
With this we check the connection to the cloud server much earlier and
in case of failure to connect try a different cloud_base_url.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/git-access.h')
-rw-r--r-- | core/git-access.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/git-access.h b/core/git-access.h index 210ebb2fd..0ac5294c6 100644 --- a/core/git-access.h +++ b/core/git-access.h @@ -15,6 +15,7 @@ extern "C" { #include <stdbool.h> #endif +#define CLOUD_NUM_HOSTS 2 #define CLOUD_HOST_US "ssrf-cloud-us.subsurface-divelog.org" #define CLOUD_HOST_EU "ssrf-cloud-eu.subsurface-divelog.org" #define CLOUD_HOST_PATTERN "ssrf-cloud-..\\.subsurface-divelog\\.org" |