summaryrefslogtreecommitdiff
path: root/src/tests/test_firewall_time.py
AgeCommit message (Collapse)Author
2026-10-17firewall: T9474: match time windows crossing midnight in UTCChristian Breunig
Rules with a start and stop time were rendered as two separate hour comparisons. nft converts both to UTC when loading the ruleset, so a window crossing midnight in UTC never matched - e.g. 22:00-06:00 anywhere, or 01:00-02:00 on a system running in CEST. A start or stop time on its own had the same problem. Hours are now rendered as a single range, which nft turns into its complement when it wraps around midnight. A missing start or stop defaults to the beginning or end of the day.