Skip to content

Commit

Permalink
Merge pull request #446 from cybwan/fix-issue
Browse files Browse the repository at this point in the history
fix ZoneDelete: destruct rules and mirrs
  • Loading branch information
UltraInstinct14 authored Nov 20, 2023
2 parents 84bbba5 + 28ead9d commit 73f7935
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 73f7935

Please sign in to comment.