From 28ead9d342a64d00005e80c0ad34c2cd11caa53c Mon Sep 17 00:00:00 2001 From: Cybwan Date: Sun, 19 Nov 2023 21:05:35 +0800 Subject: [PATCH] fix ZoneDelete: destruct rules and mirrs --- loxinet/zones.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loxinet/zones.go b/loxinet/zones.go index ec9d0daea..85a421f70 100644 --- a/loxinet/zones.go +++ b/loxinet/zones.go @@ -126,7 +126,8 @@ func (z *ZoneH) ZoneDelete(name string) (int, error) { return ZoneNotExistErr, errors.New("no such zone") } - zone.Name = name + zone.Rules.RuleDestructAll() + zone.Mirrs.MirrDestructAll() zone.Pols.PolDestructAll() zone.Rt.RtDestructAll() zone.Nh.NeighDestructAll()