From 9c1e4b0747be3e4d94109ba39fe0b368b712d0a6 Mon Sep 17 00:00:00 2001 From: Cybwan Date: Mon, 6 Nov 2023 07:30:54 +0800 Subject: [PATCH] fix zone's name check --- loxinet/zones.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loxinet/zones.go b/loxinet/zones.go index 1ee30eb44..92133c04e 100644 --- a/loxinet/zones.go +++ b/loxinet/zones.go @@ -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")