Skip to content

Commit

Permalink
fix ZoneDelete: destruct rules and mirrs
Browse files Browse the repository at this point in the history
  • Loading branch information
cybwan committed Nov 19, 2023
1 parent 84bbba5 commit 28ead9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion loxinet/zones.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 28ead9d

Please sign in to comment.