Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix toggleNATrule() always returning 'enabled' for a single rule
When toggleNATrule() was modified to accept a list of NAT rules, the default case for a single 'id' in the postdata was broken by building a rule map of {id => id}, and attempting later to index that map with id 0. If the rule being toggled isn't rule 0, this fails. The code is corrected to simply build an array of { id } that is zero-indexed.
- Loading branch information