mirror of
https://github.com/eliasstepanik/IonosDDNSUpdater.git
synced 2026-01-11 11:38:27 +00:00
Fixed Error
This commit is contained in:
parent
1fed56f06f
commit
10529a6992
@ -21,11 +21,12 @@ public class DDNSService : IDDNSService
|
||||
public DDNSService(ILogger<DDNSService> logger,IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
Domains = new List<Domain>();
|
||||
|
||||
foreach (DictionaryEntry de in Environment.GetEnvironmentVariables())
|
||||
{
|
||||
|
||||
if (de.Key.ToString().Contains("DOMAIN"))
|
||||
if (de.Key.ToString().ToLower().Contains("domain"))
|
||||
{
|
||||
// domain;key
|
||||
var env = de.Value.ToString().Split(";").ToList();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user