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