fix: Get rid of syntax errors
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
...for now
This commit is contained in:
parent
12be94f4e5
commit
fa2e8d756f
1 changed files with 2 additions and 1 deletions
|
@ -100,11 +100,12 @@ func GetGuestNicProto() (*GuestNicProto, error) {
|
||||||
r := InetCidrRouteEntry{
|
r := InetCidrRouteEntry{
|
||||||
InetCidrRouteDest: addr,
|
InetCidrRouteDest: addr,
|
||||||
InetCidrRoutePfxLen: InetAddressPrefixLength(routePrefix),
|
InetCidrRoutePfxLen: InetAddressPrefixLength(routePrefix),
|
||||||
InetCidrRouteNextHop: route.Gw.,
|
// InetCidrRouteNextHop: route.Gw,
|
||||||
InetCidrRouteIfIndex: 0,
|
InetCidrRouteIfIndex: 0,
|
||||||
InetCidrRouteType: 0,
|
InetCidrRouteType: 0,
|
||||||
InetCidrRouteMetric: 0,
|
InetCidrRouteMetric: 0,
|
||||||
}
|
}
|
||||||
|
res.Routes = append(res.Routes, r)
|
||||||
}
|
}
|
||||||
|
|
||||||
res.Nics = append(res.Nics, nic)
|
res.Nics = append(res.Nics, nic)
|
||||||
|
|
Loading…
Reference in a new issue