Skip to content

Commit

Permalink
fix zone's name check
Browse files Browse the repository at this point in the history
  • Loading branch information
cybwan committed Nov 5, 2023
1 parent f468258 commit 9c1e4b0
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 9c1e4b0

Please sign in to comment.