mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
@@ -135,7 +135,13 @@ Function Get-DnsClientMatch {
|
||||
|
||||
$current_dns_v4 = ($current_dns_all | Where-Object AddressFamily -eq 2 <# IPv4 #>).ServerAddresses
|
||||
|
||||
$v4_match = @(Compare-Object $current_dns_v4 $ipv4_addresses).Count -eq 0
|
||||
If ($current_dns_v4 -eq $null) {
|
||||
$v4_match = $False
|
||||
}
|
||||
|
||||
Else {
|
||||
$v4_match = @(Compare-Object $current_dns_v4 $ipv4_addresses).Count -eq 0
|
||||
}
|
||||
|
||||
# TODO: implement IPv6
|
||||
|
||||
|
||||
Reference in New Issue
Block a user