diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-06-03 01:25:32 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-06-04 01:12:13 +0200 |
commit | ea5e892af8e2aed9871b5cc7589afc20dd02015b (patch) | |
tree | 2e08028a42e4a0c17486cb3518d475deb2fd2944 /src | |
parent | 5c2c6b09286048b39d51964391ef2aecfd247512 (diff) |
statement: connlimit: remove extra whitespace in print function
Instead of:
ct count 2 accept
^^
simply print:
ct count 2 accept
While at it, add incomplete reference 'ct count' to manpage.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/statement.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/statement.c b/src/statement.c index f7f1c0c4..7537c07f 100644 --- a/src/statement.c +++ b/src/statement.c @@ -201,7 +201,7 @@ struct stmt *meter_stmt_alloc(const struct location *loc) static void connlimit_stmt_print(const struct stmt *stmt, struct output_ctx *octx) { - nft_print(octx, "ct count %s%u ", + nft_print(octx, "ct count %s%u", stmt->connlimit.flags ? "over " : "", stmt->connlimit.count); } |