Skip to content

Commit

Permalink
Merge pull request #79 from telekom-mms/bugfix/splitrt-fixes
Browse files Browse the repository at this point in the history
Bugfix/splitrt fixes
  • Loading branch information
hwipl authored Apr 29, 2024
2 parents dbbaaf2 + cca8c3a commit f481937
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/splitrt/excludes.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (e *Excludes) AddDynamic(ctx context.Context, address *net.IPNet, ttl uint3
return
}
if !prefix.IsSingleIP() {
log.WithError(err).Error("SplitRouting error adding dynamic exclude with multiple IPs")
log.Error("SplitRouting error adding dynamic exclude with multiple IPs")
return
}
a := prefix.Addr()
Expand Down
4 changes: 2 additions & 2 deletions internal/splitrt/splitrt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func TestSplitRoutingHandleAddressUpdate(t *testing.T) {
t.Errorf("got %v, want %v", got, want)
}

// test with exculde and virtual
// test with exclude and virtual
vpnconf = vpnconfig.New()
vpnconf.Split.ExcludeIPv4 = []*net.IPNet{
{
Expand Down Expand Up @@ -231,7 +231,7 @@ func TestSplitRoutingStartStop(t *testing.T) {
},
{
IP: net.ParseIP("2000::1"),
Mask: net.CIDRMask(32, 32),
Mask: net.CIDRMask(128, 128),
},
}
s = NewSplitRouting(NewConfig(), vpnconf)
Expand Down

0 comments on commit f481937

Please sign in to comment.