Fix zone type in config.ml

This commit is contained in:
jeltz 2022-08-29 22:51:47 +02:00
parent e8b7c08b27
commit 429379ccf3
Signed by: jeltz
GPG key ID: 800882B66C0C3326

View file

@ -15,10 +15,10 @@ type l4_rule =
| IcmpRule | IcmpRule
type rule = { src : addrs list; dest : addrs list; l4 : l4_rule } type rule = { src : addrs list; dest : addrs list; l4 : l4_rule }
type config = { zones : (string * zone list) list; rules : rule list } type config = { zones : (string * zone) list; rules : rule list }
(* TODO *) (* TODO *)
let zone_of_json _ = [ Zone "xxx" ] let zone_of_json _ = Zone "xxx"
let addrs_of_json json = let addrs_of_json json =
let open Yojson.Basic.Util in let open Yojson.Basic.Util in