Merge pull request #5798 from mwrock/preferipv4
prefer ipv4 host address over ipv6 for smb synced folders
This commit is contained in:
commit
d0b359cecf
|
@ -1,6 +1,9 @@
|
||||||
$ErrorAction = "Stop"
|
$ErrorAction = "Stop"
|
||||||
|
|
||||||
$net = Get-NetIPAddress | Where-Object {($_.IPAddress -ne "127.0.0.1") -and ($_.IPAddress -ne "::1")}
|
$net = Get-NetIPAddress | Where-Object {
|
||||||
|
($_.IPAddress -ne "127.0.0.1") -and ($_.IPAddress -ne "::1")
|
||||||
|
} | Sort-Object $_.AddressFamily
|
||||||
|
|
||||||
$result = @{
|
$result = @{
|
||||||
ip_addresses = $net.IPAddress
|
ip_addresses = $net.IPAddress
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue