mirror of
https://github.com/moby/moby.git
synced 2026-08-03 06:30:59 +00:00
netutils: minor cleanups
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -69,10 +69,7 @@ func GenerateIfaceName(nlh *netlink.Handle, prefix string, len int) (string, err
|
||||
// list the first IPv4 address which does not conflict with other
|
||||
// interfaces on the system.
|
||||
func ElectInterfaceAddresses(name string) ([]*net.IPNet, []*net.IPNet, error) {
|
||||
var (
|
||||
v4Nets []*net.IPNet
|
||||
v6Nets []*net.IPNet
|
||||
)
|
||||
var v4Nets, v6Nets []*net.IPNet
|
||||
|
||||
defer osl.InitOSContext()()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user