Skip to content
Commit 8bb9853f authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Allow IP addresses with netmask in advanced rule editor

Especially for firewall configuration, it's very much useful to be
able to allow or block subnets (e.g. I want to allow all traffic
originating on trusted part of my home network). Both UFW and
firewalld do accept IP addresses with netmask, so it is just about
allowing them in the input's validtors.

I decided to replace the regular expressions with a custom QValidator
subclass, which uses lib'c inet_pton() to validate the entered IP
address and can also handle optional netmasks.

FEATURE: 434317
CHANGELOG: Allow IP addresses with netmask in advanced rule editor
parent c482763e
Pipeline #251014 passed with stage
in 1 minute and 44 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment