diff options
author | Kenneth Skovhede <kenneth@hexad.dk> | 2018-02-26 13:37:10 +0300 |
---|---|---|
committer | Kenneth Skovhede <kenneth@hexad.dk> | 2018-02-26 13:37:10 +0300 |
commit | bd863016faca89fe78844467aefdd319db044b69 (patch) | |
tree | e7a879fd088bb147686b4982c072be4ea48f406d /Duplicati/Library/Backend/HubiC/HubiCBackend.cs | |
parent | 325d45d7848796b2f7da1618c12f883459b46cd1 (diff) |
Added support for returning multiple DNS names for cache invalidation.
Updated most backends to return the actual DNS names for cache invalidation.
Diffstat (limited to 'Duplicati/Library/Backend/HubiC/HubiCBackend.cs')
-rw-r--r-- | Duplicati/Library/Backend/HubiC/HubiCBackend.cs | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Duplicati/Library/Backend/HubiC/HubiCBackend.cs b/Duplicati/Library/Backend/HubiC/HubiCBackend.cs index ea42996ca..ec604c063 100644 --- a/Duplicati/Library/Backend/HubiC/HubiCBackend.cs +++ b/Duplicati/Library/Backend/HubiC/HubiCBackend.cs @@ -28,7 +28,7 @@ namespace Duplicati.Library.Backend.HubiC private const string HUBIC_API_URL = "https://api.hubic.com/1.0/";
private const string HUBIC_API_CREDENTIAL_URL = HUBIC_API_URL + "account/credentials";
- private OpenStackStorage m_openstack;
+ private OpenStackHelper m_openstack;
private class HubiCAuthResponse
{
@@ -77,6 +77,17 @@ namespace Duplicati.Library.Backend.HubiC {
get { return AuthToken.endpoint; }
}
+
+ public string EndPointDnsName
+ {
+ get
+ {
+ if (m_token == null || string.IsNullOrWhiteSpace(m_token.endpoint))
+ return null;
+
+ return new Uri(m_token.endpoint).Host;
+ }
+ }
}
public HubiCBackend()
@@ -171,9 +182,9 @@ namespace Duplicati.Library.Backend.HubiC }
}
- public string DNSName
+ public string[] DNSName
{
- get { return null; }
+ get { return new string[] { new Uri(HUBIC_API_URL).Host, m_openstack.EndPointDnsName }; }
}
#endregion
|