From 3e2fbb2c75d1d2b1def013007077452b853a92d9 Mon Sep 17 00:00:00 2001 From: Giulio Date: Fri, 25 Jun 2021 11:02:03 +0200 Subject: [PATCH] Fixed srcports parsing --- qubes/firewall.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qubes/firewall.py b/qubes/firewall.py index 2a278a92..1ebf93d5 100644 --- a/qubes/firewall.py +++ b/qubes/firewall.py @@ -327,18 +327,18 @@ class Rule(qubes.PropertyHolder): order=1, doc='destination host/network') + srcports = qubes.property('srcports', + type=SrcPorts, + default=None, + order=2, + doc='Inbound port(s) (for forwarding only)') + dstports = qubes.property('dstports', type=DstPorts, default=None, order=2, doc='Destination port(s) (for \'tcp\' and \'udp\' protocol only)') - srcports = qubes.property('srcports', - type=DstPorts, - default=None, - order=2, - doc='Inbound port(s) (for forwarding only)') - icmptype = qubes.property('icmptype', type=IcmpType, default=None,