Skip to content

Commit

Permalink
Merge pull request #431 from cybwan/fix-issue
Browse files Browse the repository at this point in the history
fix zone's name check
  • Loading branch information
UltraInstinct14 authored Nov 6, 2023
2 parents f468258 + 9c1e4b0 commit 321a547
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 321a547

Please sign in to comment.