]> git.ipfire.org Git - thirdparty/nftables.git/commit
monitor: Don't print newgen message with JSON output
authorPhil Sutter <phil@nwl.cc>
Wed, 17 Feb 2021 11:38:42 +0000 (12:38 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 17 Feb 2021 13:09:14 +0000 (14:09 +0100)
commitfb544ce224ab56ef789e926227e47ac537cf9a20
tree7ad945f3912306c0d7350f36013c43b753fd11b7
parentf1ab88012df9e71dbca30b4acef17d29cba45519
monitor: Don't print newgen message with JSON output

Iff this should be printed, it must adhere to output format settings. In
its current form it breaks JSON syntax, so skip it for non-default
output formats.

Fixes: cb7e02f44d6a6 ("src: enable json echo output when reading native syntax")
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/monitor.c