mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
pkg/netutil: name GetDefaultInterfaces consistent
This commit is contained in:
parent
d96d3aa0ed
commit
77a51e0dbf
@ -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.
|
// GetDefaultInterfaces fetches the device name of default routable interface.
|
||||||
func GetDefaultInterface() (string, error) {
|
func GetDefaultInterfaces() (map[string]uint8, error) {
|
||||||
return "", fmt.Errorf("default host not supported on %s_%s", runtime.GOOS, runtime.GOARCH)
|
return nil, fmt.Errorf("default host not supported on %s_%s", runtime.GOOS, runtime.GOARCH)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user