diff options
author | Z. Liu <liuzx@knownsec.com> | 2024-05-20 22:23:40 +0800 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2024-06-05 08:25:45 +0200 |
commit | 776f37405da713d3d5ad3908dd9aee4f50c1b1f9 (patch) | |
tree | c832ed511bb7469b16d91eeddea2ad7d4554565b /tests/Makefile.in | |
parent | ed47b815a0d2ca9fc3bd4af5207a5d95d66d54ba (diff) |
ipset: fix json output format for IPSET_OPT_IP
IPSET_OPT_IP should be quoted to be a well formed json file, otherwise see
following bad example (range is not quoted):
# ipset create foo bitmap:ip range 192.168.0.0/16
# ipset list -o json foo
[
{
"name" : "foo",
"type" : "bitmap:ip",
"revision" : 3,
"header" : {
"range" : 192.168.0.0-192.168.255.255,
"memsize" : 8280,
"references" : 0,
"numentries" : 0
},
"members" : [
]
}
]
Signed-off-by: Z. Liu <liuzx@knownsec.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Diffstat (limited to 'tests/Makefile.in')
0 files changed, 0 insertions, 0 deletions