Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: spidernet-io/spiderpool
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bf325f4817c315f85e3d76483bd724a400b0a11c
Choose a base ref
..
head repository: spidernet-io/spiderpool
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b3292ca459b6e5ae92d0d6b0313fe79453b97a9b
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 pkg/utils/convert/convert.go
4 changes: 2 additions & 2 deletions pkg/utils/convert/convert.go
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ func ConvertIPDetailsToIPConfigsAndAllRoutes(details []spiderpoolv2beta1.IPAlloc
if d.IPv4Gateway != nil {
ipv4Gateway = *d.IPv4Gateway
// don't set default route if we have cleangateway
if !(d.CleanGateway != nil && *d.CleanGateway == true) {
if !(d.CleanGateway != nil && *d.CleanGateway) {
routes = append(routes, genDefaultRoute(nic, ipv4Gateway))
}
}
@@ -51,7 +51,7 @@ func ConvertIPDetailsToIPConfigsAndAllRoutes(details []spiderpoolv2beta1.IPAlloc
if d.IPv6Gateway != nil {
ipv6Gateway = *d.IPv6Gateway
// don't set default route if we have cleangateway
if !(d.CleanGateway != nil && *d.CleanGateway == true) {
if !(d.CleanGateway != nil && *d.CleanGateway) {
routes = append(routes, genDefaultRoute(nic, ipv6Gateway))
}
}