fw4: fix formatting of default log prefix
authorJo-Philipp Wich <jo@mein.io>
Wed, 5 Oct 2022 21:33:59 +0000 (23:33 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 5 Oct 2022 21:33:59 +0000 (23:33 +0200)
commit43d8ef516747aaede640d292b0326a66186809a8
tree8fd51ddc485610a2589bcb34012c3e5c82ed927f
parent592ba4577e9beaf66e4bbac31c20c1cc3299be9a
fw4: fix formatting of default log prefix

When using the explicit or implicit rule name as default log prefix, ensure
that is followed by a colon and a space to yield properly formatted firewall
log messages.

Also align the processing logic of `option log` in `config nat` sections with
that in `config rule` and `config redirect`.

Ref: https://forum.openwrt.org/t/x/137182/8
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/ucode/fw4.uc
tests/03_rules/11_log [new file with mode: 0644]