Преглед на файлове

pkg/netutil: name GetDefaultInterfaces consistent

Gyu-Ho Lee преди 9 години
родител
ревизия
01a1dae7ae
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  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)
 }
 
-// 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)
 }