Skip to content

Commit

Permalink
net: simplify probeWindowsIPStack
Browse files Browse the repository at this point in the history
Change-Id: Ia45f05c63611ade4fe605b389c404953a7afbd1d
Reviewed-on: https://go-review.googlesource.com/41837
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
  • Loading branch information
cixtor committed Apr 28, 2017
1 parent bf4cd98 commit 3a342af
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/net/interface_windows.go
Expand Up @@ -24,10 +24,7 @@ func probeWindowsIPStack() (supportsVistaIP bool) {
if err != nil {
return true // Windows 10 and above will deprecate this API
}
if byte(v) < 6 { // major version of Windows Vista is 6
return false
}
return true
return byte(v) >= 6 // major version of Windows Vista is 6
}

// adapterAddresses returns a list of IP adapter and address
Expand Down

0 comments on commit 3a342af

Please sign in to comment.