fix merge mistake :)

This commit is contained in:
Mindy 2019-05-16 17:48:17 -04:00
parent 0d54f80b6b
commit 45ffee89e1

View File

@ -45,6 +45,7 @@ let classify_client_packet (packet : ([`Client of _], _) Packet.t) rules : Packe
List.exists (fun (Q.Range_inclusive (min, max)) -> (min <= port && port <= max)) dstports
in
let matches_proto rule packet = match rule.Pf_qubes.Parse_qubes.proto with
| None -> true
| Some rule_proto -> match rule_proto, packet.transport_header with
| `tcp, `TCP header -> matches_port rule.Q.dstports header.dst_port
| `udp, `UDP header -> matches_port rule.Q.dstports header.dst_port