Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rs committed Sep 16, 2023
1 parent ccdcd77 commit 835064e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (ps *Profiles) Set(value string) error {
// Replace if c match the same criteria of an existing config
for i, _p := range *ps {
if (p.MAC != nil && _p.MAC != nil && bytes.Equal(p.MAC, _p.MAC)) ||
ipListEqual(p.DestIPs, _p.DestIPs) ||
(p.DestIPs != nil && _p.DestIPs != nil && ipListEqual(p.DestIPs, _p.DestIPs)) ||
(p.Prefix != nil && _p.Prefix != nil && p.Prefix.String() == _p.Prefix.String()) ||
(p.MAC == nil && p.Prefix == nil && p.DestIPs == nil && _p.MAC == nil && _p.Prefix == nil && _p.DestIPs == nil) {
(*ps)[i] = p
Expand Down

0 comments on commit 835064e

Please sign in to comment.