Skip to content

Commit

Permalink
Fix IPCIDR and Combined dump logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
xkww3n committed Dec 1, 2023
1 parent aaf0209 commit ba4e8d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Utils/ruleset.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ def dump(src: RuleSet, target: str, dst: Path, filename: str) -> None:


def batch_dump(src: RuleSet, targets: list, dst_path: Path, filename: str) -> None:
targets = deepcopy(targets)
if src.Type in ("IPCIDR", "Combined"):
if all(t in targets for t in ["text", "text-plus"]):
logging.info(f"{filename}: text-plus ignored as the same as text-type.")
Expand Down

0 comments on commit ba4e8d7

Please sign in to comment.