mirror of
https://github.com/eliasstepanik/IonosDDNSUpdater.git
synced 2026-01-11 03:28:27 +00:00
Update DDNSService.cs
This commit is contained in:
parent
86cf3239bc
commit
9aefab3238
@ -21,12 +21,12 @@ public class DDNSService : IDDNSService
|
||||
{
|
||||
_logger = logger;
|
||||
APIKey = configuration.GetValue<string>("APIKey");
|
||||
if(Environment.GetEnvironmentVariable("API_Key") != "")
|
||||
if(Environment.GetEnvironmentVariable("API_Key") != "default")
|
||||
APIKey = Environment.GetEnvironmentVariable("API_Key");
|
||||
|
||||
logger.LogDebug($"Got the Following Key: {APIKey}");
|
||||
Domains = configuration.GetSection("Domains").Get<List<string>>();
|
||||
if (Environment.GetEnvironmentVariable("DOMAINS") != "")
|
||||
if (Environment.GetEnvironmentVariable("DOMAINS") != "default")
|
||||
{
|
||||
var domainsRaw = Environment.GetEnvironmentVariable("DOMAINS");
|
||||
var domains = new List<string>();
|
||||
@ -99,4 +99,4 @@ public class DDNSService : IDDNSService
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user