Browse Source

Fix compilation on Windows.

pull/2563/head
Sean Chittenden 8 years ago
parent
commit
5fc97b997d
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
  1. 4
      vendor/github.com/hashicorp/go-sockaddr/ifaddrs_windows.go
  2. 6
      vendor/vendor.json

4
vendor/github.com/hashicorp/go-sockaddr/ifaddrs_windows.go generated vendored

@ -24,7 +24,7 @@ func getDefaultIfName() (string, error) {
if err != nil { if err != nil {
return "", err return "", err
} }
return ipAddr, nil
} }
func getWindowsIPOnDefaultRoute() (string, error) { func getWindowsIPOnDefaultRoute() (string, error) {
@ -35,7 +35,7 @@ func getWindowsIPOnDefaultRoute() (string, error) {
} }
var defaultIPAddr string var defaultIPAddr string
if defaultIPAddr, err = parseDefaultIfNameFromWindowsNetstatRN(string(out)); err != nil { if defaultIPAddr, err = parseDefaultIPAddrWindowsRoute(string(out)); err != nil {
return "", errors.New("No IP on default route found") return "", errors.New("No IP on default route found")
} }
return defaultIPAddr, nil return defaultIPAddr, nil

6
vendor/vendor.json vendored

@ -420,10 +420,10 @@
"revisionTime": "2016-09-30T03:51:02Z" "revisionTime": "2016-09-30T03:51:02Z"
}, },
{ {
"checksumSHA1": "AL5OQyjfTdgkO7XfMZ5HWTkVK9k=", "checksumSHA1": "wGgPqc+2Lwn6qbDjM15SLKktd+Y=",
"path": "github.com/hashicorp/go-sockaddr", "path": "github.com/hashicorp/go-sockaddr",
"revision": "a99c57b5a5f48c51607e63089075fe7434fe219a", "revision": "3fe949359e7faa30c9dc5b4f921c7beddba1a27c",
"revisionTime": "2016-12-02T03:16:41Z" "revisionTime": "2016-12-02T06:02:17Z"
}, },
{ {
"checksumSHA1": "Y+c+ahUug8/vK+cWRLatV5aB4ps=", "checksumSHA1": "Y+c+ahUug8/vK+cWRLatV5aB4ps=",

Loading…
Cancel
Save