Skip to content

Commit d1339c6

Browse files
committed
Don't fallback on list.Source in UpdateMonitoredIPAddresses
1 parent 8627974 commit d1339c6

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

Aikido.Zen.Core/Models/AgentConfiguration.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,7 @@ public void UpdateMonitoredIPAddresses(IEnumerable<FirewallListsAPIResponse.IPLi
295295
{
296296
foreach (var list in monitoredIPAddresses)
297297
{
298-
if (list == null)
299-
{
300-
continue;
301-
}
302-
303-
var key = !string.IsNullOrWhiteSpace(list.Key) ? list.Key : list.Source;
304-
if (string.IsNullOrWhiteSpace(key))
298+
if (list == null || string.IsNullOrWhiteSpace(list.Key))
305299
{
306300
continue;
307301
}

0 commit comments

Comments
 (0)