mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
add two more cloud servers to the rotation
This is not a great way to load-balance, but it works and doesn't require high end hardware on the backend. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b3d2a8cdcb
commit
7792e227da
3 changed files with 10 additions and 2 deletions
|
|
@ -306,7 +306,11 @@ int certificate_check_cb(git_cert *cert, int valid, const char *host, void *payl
|
|||
UNUSED(payload);
|
||||
if (verbose)
|
||||
SSRF_INFO("git storage: certificate callback for host %s with validity %d\n", host, valid);
|
||||
if ((same_string(host, CLOUD_HOST_GENERIC) || same_string(host, CLOUD_HOST_US) || same_string(host, CLOUD_HOST_EU)) &&
|
||||
if ((same_string(host, CLOUD_HOST_GENERIC) ||
|
||||
same_string(host, CLOUD_HOST_US) ||
|
||||
same_string(host, CLOUD_HOST_U2) ||
|
||||
same_string(host, CLOUD_HOST_EU) ||
|
||||
same_string(host, CLOUD_HOST_E2)) &&
|
||||
cert->cert_type == GIT_CERT_X509) {
|
||||
// for some reason the LetsEncrypt certificate makes libgit2 throw up on some
|
||||
// platforms but not on others
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue