diff options
author | TopperDEL <github_com@tparth.de> | 2020-07-16 16:57:50 +0300 |
---|---|---|
committer | TopperDEL <github_com@tparth.de> | 2020-07-16 16:57:50 +0300 |
commit | 79ba47f6efb32870f53ca9826f16e5beeac51973 (patch) | |
tree | 424d52414cff152ccf78e3f5bd621e83bb86f63f /Duplicati/Library/Backend/Tardigrade | |
parent | 78065fde53758d1ed8fa57da8fa696e66f132fb6 (diff) |
feat: Add Tardigrade-Partner-ID
Diffstat (limited to 'Duplicati/Library/Backend/Tardigrade')
-rw-r--r-- | Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs b/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs index 3a6b03246..14410c710 100644 --- a/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs +++ b/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs @@ -24,6 +24,7 @@ namespace Duplicati.Library.Backend.Tardigrade private const string TARDIGRADE_BUCKET = "tardigrade-bucket"; private const string TARDIGRADE_FOLDER = "tardigrade-folder"; private const string PROTOCOL_KEY = "tardigrade"; + private const string TARDIGRADE_PARTNER_ID = "duplicati"; private readonly string _satellite; private readonly string _api_key; @@ -86,7 +87,7 @@ namespace Duplicati.Library.Backend.Tardigrade { //Create an access from the access grant var shared_access = options[TARDIGRADE_SHARED_ACCESS]; - _access = new Access(shared_access); + _access = new Access(shared_access, new Config() { UserAgent = TARDIGRADE_PARTNER_ID }); } else { @@ -102,8 +103,8 @@ namespace Duplicati.Library.Backend.Tardigrade _secret = options[TARDIGRADE_SECRET]; } - _access = new Access(_satellite, _api_key, _secret); - } + _access = new Access(_satellite, _api_key, _secret, new Config() { UserAgent = TARDIGRADE_PARTNER_ID }); + } _bucketService = new BucketService(_access); _objectService = new ObjectService(_access); |