mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
c8124ca39a
commit
a42b81132e
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue