Moved forwardtype near action for consistency

Bu işleme şunda yer alıyor:
Giulio 2021-06-22 18:14:53 +02:00
ebeveyn 310bf64c48
işleme 8dbe6213e1

Dosyayı Görüntüle

@ -83,6 +83,15 @@ class Action(RuleChoice):
return 'action=' + str(self)
class ForwardType(RuleOption):
external = 'external'
internal = 'internal'
@property
def rule(self):
return 'forwardtype=' + str(self)
class Proto(RuleChoice):
tcp = 'tcp'
udp = 'udp'
@ -183,13 +192,6 @@ class DstPorts(RuleOption):
def rule(self):
return 'dstports=' + '{!s}-{!s}'.format(*self.range)
class ForwardType(RuleOption):
external = 'external'
internal = 'internal'
@property
def rule(self):
return 'forwardtype=' + str(self)
class IcmpType(RuleOption):
def __init__(self, untrusted_value):