X-Forwarded-For parsing and trusted proxy detection for OCaml
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-xff: add blank line in xff.mli example after dune fmt

Pure formatting: dune fmt inserts a blank between the let-binding for
socket_ip and the multi-line client_ip binding.

+1
+1
lib/xff.mli
··· 12 12 13 13 (* Extract client IP from request *) 14 14 let socket_ip = Some (Ipaddr.of_string_exn "10.0.0.1") 15 + 15 16 let client_ip = 16 17 Xff.client_ip_string ~socket_ip 17 18 ~xff_header:(Some "203.0.113.50, 10.0.0.1")