Merge pull request #5798 from mwrock/preferipv4

prefer ipv4 host address over ipv6 for smb synced folders
This commit is contained in:
Mitchell Hashimoto 2015-07-06 15:23:08 -06:00
commit d0b359cecf
1 changed files with 4 additions and 1 deletions

View File

@ -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
} }