Make parsing of booleans a little bit more lenient.

This makes the input framework (and everything else that uses the Ascii
parser) accept 0 and 1 as valid values for booleans.
This commit is contained in:
Johanna Amann 2018-01-18 11:09:12 -08:00
parent ff22230a73
commit 116079a9ad
4 changed files with 7 additions and 6 deletions

View file

@ -1,5 +1,5 @@
{
[-42] = [b=T, e=SSH::LOG, c=21, p=123/unknown, pp=5/icmp, sn=10.0.0.0/24, a=1.2.3.4, d=3.14, t=1315801931.273616, iv=100.0, s=hurz, ns=4242, sc={
[-42] = [b=T, bt=T, e=SSH::LOG, c=21, p=123/unknown, pp=5/icmp, sn=10.0.0.0/24, a=1.2.3.4, d=3.14, t=1315801931.273616, iv=100.0, s=hurz, ns=4242, sc={
2,
4,
1,