Browse Source

Fixed srcports parsing

Giulio 2 years ago
parent
commit
3e2fbb2c75
1 changed files with 6 additions and 6 deletions
  1. 6 6
      qubes/firewall.py

+ 6 - 6
qubes/firewall.py

@@ -327,17 +327,17 @@ class Rule(qubes.PropertyHolder):
         order=1,
         doc='destination host/network')
 
-    dstports = qubes.property('dstports',
-        type=DstPorts,
+    srcports = qubes.property('srcports',
+        type=SrcPorts,
         default=None,
         order=2,
-        doc='Destination port(s) (for \'tcp\' and \'udp\' protocol only)')
-
-    srcports = qubes.property('srcports',
+        doc='Inbound port(s) (for forwarding only)')
+    
+    dstports = qubes.property('dstports',
         type=DstPorts,
         default=None,
         order=2,
-        doc='Inbound port(s) (for forwarding only)')
+        doc='Destination port(s) (for \'tcp\' and \'udp\' protocol only)')
 
     icmptype = qubes.property('icmptype',
         type=IcmpType,