mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-16 17:51:16 +01:00
Update documentation to reflect the fact that '-' is not really an empty parameter
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
584040b413
commit
7266e1bd89
@ -65,7 +65,9 @@ VI. PROBLEMS CORRECTED AND NEW FEATURES IN PRIOR RELEASES
|
||||
|
||||
Where <def1> is the default value for the first parameter, <def2>
|
||||
is the default value for the second parameter and so on. To specify
|
||||
an empty default, use '-'.
|
||||
an empty default, use '-'. Note that the corresponding parameter
|
||||
variable ($n) will still expand to '-' but will be treated as empty
|
||||
by the builtin actions such as dropInvalid.
|
||||
|
||||
The DEFAULTS directive also determines the maximum number of
|
||||
parameters that an action may have. If more parameters are passed
|
||||
|
@ -372,10 +372,7 @@ REDIRECT net - tcp 80 - 1.2.3.4</programlisting>
|
||||
|
||||
<para>Example: ACTION(REDIRECT,-,info)</para>
|
||||
|
||||
<para>In the above example, $2 would expand to nothing.</para>
|
||||
|
||||
<para>If you want to make '-' a parameter value, use '--' (e.g.,
|
||||
ACTION(REDIRECT,--.info)).</para>
|
||||
<para>In the above example, $2 would expand to '-'.</para>
|
||||
|
||||
<para>Beginning with Shorewall 4.4.21, you can specify the default
|
||||
values of your FORMAT-2 actions:</para>
|
||||
|
Loading…
Reference in New Issue
Block a user