Firewall/rule parsing, fix some spacings. for https://github.com/opnsense/core/issues/1326

This commit is contained in:
Ad Schellevis 2017-12-28 21:50:44 +01:00
parent 70d795dfe2
commit 41e89fe13c
3 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ class DNatRule extends Rule
),
'nat_rdr' => array(
'disabled' => 'parseIsComment',
'nat' => 'parseStaticText, rdr ',
'nat' => 'parseStaticText,rdr ',
'interface' => 'parseInterface',
'to' => 'parsePlainCurly,from ',
'external' => 'parsePlainCurly,to ',
@ -56,7 +56,7 @@ class DNatRule extends Rule
),
'nat_refl' => array(
'disabled' => 'parseIsComment',
'nat' => 'parseStaticText, nat ',
'nat' => 'parseStaticText,nat ',
'interface' => 'parseInterface',
'ipprotocol' => 'parsePlain',
'protocol' => 'parseReplaceSimple,tcp/udp:{tcp udp},proto ',

View File

@ -56,7 +56,7 @@ class ForwardRule extends Rule
),
'rdr_nat' => array(
'disabled' => 'parseIsComment',
'nat' => 'parseStaticText, nat ',
'nat' => 'parseStaticText,nat ',
'interface' => 'parseInterface',
'ipprotocol' => 'parsePlain',
'protocol' => 'parseReplaceSimple,tcp/udp:{tcp udp},proto ',

View File

@ -38,7 +38,7 @@ class NptRule extends Rule
private $procorder = array(
'binat_1' => array(
'disabled' => 'parseIsComment',
'binat' => 'parseStaticText, binat ',
'binat' => 'parseStaticText,binat ',
'interface' => 'parseInterface',
'from' => 'parsePlain,from , to any',
'to' => 'parsePlain, -> ',
@ -46,7 +46,7 @@ class NptRule extends Rule
),
'binat_2' => array(
'disabled' => 'parseIsComment',
'binat' => 'parseStaticText, binat ',
'binat' => 'parseStaticText,binat ',
'interface' => 'parseInterface',
'to' => 'parsePlain,from , to any',
'from' => 'parsePlain, -> ',