mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
netlink: make darwin happy
Docker-DCO-1.1-Signed-off-by: Johan Euphrosine <proppy@google.com> (github: proppy)
This commit is contained in:
parent
dadd54dba3
commit
77d9fd2628
2 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ func networkSize(mask net.IPMask) int32 {
|
|||
|
||||
func checkRouteOverlaps(networks []netlink.Route, dockerNetwork *net.IPNet) error {
|
||||
for _, network := range networks {
|
||||
if !network.Default && networkOverlaps(dockerNetwork, network.IPNet) {
|
||||
if network.IPNet != nil && networkOverlaps(dockerNetwork, network.IPNet) {
|
||||
return fmt.Errorf("Network %s is already routed: '%s'", dockerNetwork, network)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"net"
|
||||
)
|
||||
|
||||
func NetworkGetRoutes() ([]*net.IPNet, error) {
|
||||
func NetworkGetRoutes() ([]Route, error) {
|
||||
return nil, fmt.Errorf("Not implemented")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue