Merge pull request #25 from squeed/ptp-v6

ptp: add ipv6 support
This commit is contained in:
Casey Callendrello
2017-07-05 17:30:23 +02:00
committed by GitHub
7 changed files with 258 additions and 25 deletions

View File

@ -75,6 +75,8 @@ func ConfigureIface(ifName string, res *current.Result) error {
}
}
ip.SettleAddresses(ifName, 10)
for _, r := range res.Routes {
routeIsV4 := r.Dst.IP.To4() != nil
gw := r.GW