Skip to content

Commit

Permalink
Merge branch 'main' into fix-issue2
Browse files Browse the repository at this point in the history
  • Loading branch information
UltraInstinct14 authored Nov 6, 2023
2 parents 635dbdd + 321a547 commit 9b93bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loxinet/zones.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (z *ZoneH) ZoneDelete(name string) (int, error) {
func (z *ZoneH) ZoneBrAdd(name string, zns string) (int, error) {
zone := z.ZoneBrs[name]
if zone != nil {
if zone.Name == name {
if zone.Name == zns {
return 0, nil
}
return ZoneExistsErr, errors.New("zone exists")
Expand Down

0 comments on commit 9b93bec

Please sign in to comment.