Fix compilation on Windows.

This commit is contained in:
Sean Chittenden 2016-12-02 17:04:28 +11:00
parent 1ca285221a
commit 98afed5da3
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
2 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ func getDefaultIfName() (string, error) {
if err != nil {
return "", err
}
return ipAddr, nil
}
func getWindowsIPOnDefaultRoute() (string, error) {
@ -35,7 +35,7 @@ func getWindowsIPOnDefaultRoute() (string, error) {
}
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 defaultIPAddr, nil

6
vendor/vendor.json vendored
View File

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