Browse Source

Merge pull request #2869 from gravitl/master

Master
Abhishek K 1 year ago
parent
commit
3152c678e0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pro/license.go

+ 1 - 1
pro/license.go

@@ -246,7 +246,7 @@ func validateLicenseKey(encryptedData []byte, publicKey *[32]byte) ([]byte, bool
 	slog.Warn(err.Error())
 	slog.Warn(err.Error())
 
 
 	// try to use cache if we had a temporary error
 	// try to use cache if we had a temporary error
-	if code == http.StatusServiceUnavailable || code == http.StatusGatewayTimeout {
+	if code == http.StatusServiceUnavailable || code == http.StatusGatewayTimeout || code == http.StatusBadGateway {
 		slog.Warn("Netmaker API may be down, will retry later...", "code", code)
 		slog.Warn("Netmaker API may be down, will retry later...", "code", code)
 		return nil, true, nil
 		return nil, true, nil
 	}
 	}