Browse Source

Merge pull request #7270 from gyuho/pkg

pkg/netutil: name GetDefaultInterfaces consistent
Xiang Li 9 years ago
parent
commit
4203c766fb
1 changed files with 3 additions and 3 deletions
  1. 3 3
      pkg/netutil/routes.go

+ 3 - 3
pkg/netutil/routes.go

@@ -27,7 +27,7 @@ func GetDefaultHost() (string, error) {
 	return "", fmt.Errorf("default host not supported on %s_%s", runtime.GOOS, runtime.GOARCH)
 	return "", fmt.Errorf("default host not supported on %s_%s", runtime.GOOS, runtime.GOARCH)
 }
 }
 
 
-// GetDefaultInterface fetches the device name of default routable interface.
-func GetDefaultInterface() (string, error) {
-	return "", fmt.Errorf("default host not supported on %s_%s", runtime.GOOS, runtime.GOARCH)
+// GetDefaultInterfaces fetches the device name of default routable interface.
+func GetDefaultInterfaces() (map[string]uint8, error) {
+	return nil, fmt.Errorf("default host not supported on %s_%s", runtime.GOOS, runtime.GOARCH)
 }
 }