Skip to content

Commit

Permalink
aghnet: fix comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
ainar-g committed Nov 7, 2022
1 parent 0d736fb commit dd3ce76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/aghnet/hostscontainer.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ type HostsRecord struct {
func (rec *HostsRecord) equal(other *HostsRecord) (ok bool) {
if rec == nil {
return other == nil
} else if other == nil {
return false
}

return rec.Canonical == other.Canonical && rec.Aliases.Equal(other.Aliases)
Expand Down

0 comments on commit dd3ce76

Please sign in to comment.