Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Duplicati/Library/Backend/Backblaze/B2AuthHelper.cs')
-rw-r--r--Duplicati/Library/Backend/Backblaze/B2AuthHelper.cs22
1 files changed, 21 insertions, 1 deletions
diff --git a/Duplicati/Library/Backend/Backblaze/B2AuthHelper.cs b/Duplicati/Library/Backend/Backblaze/B2AuthHelper.cs
index 55197519c..d0d960ff5 100644
--- a/Duplicati/Library/Backend/Backblaze/B2AuthHelper.cs
+++ b/Duplicati/Library/Backend/Backblaze/B2AuthHelper.cs
@@ -27,7 +27,7 @@ namespace Duplicati.Library.Backend.Backblaze
private readonly string m_credentials;
private AuthResponse m_config;
private DateTime m_configExpires;
- private const string AUTH_URL = "https://api.backblazeb2.com/b2api/v1/b2_authorize_account";
+ internal const string AUTH_URL = "https://api.backblazeb2.com/b2api/v1/b2_authorize_account";
public B2AuthHelper(string userid, string password)
: base()
@@ -54,6 +54,26 @@ namespace Duplicati.Library.Backend.Backblaze
return url;
}
+ public string APIDnsName
+ {
+ get
+ {
+ if (m_config == null || string.IsNullOrWhiteSpace(m_config.APIUrl))
+ return null;
+ return new System.Uri(m_config.APIUrl).Host;
+ }
+ }
+
+ public string DownloadDnsName
+ {
+ get
+ {
+ if (m_config == null || string.IsNullOrWhiteSpace(m_config.DownloadUrl))
+ return null;
+ return new System.Uri(m_config.DownloadUrl).Host;
+ }
+ }
+
private AuthResponse Config
{
get