package ez_api

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file ip.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 1 "src/server/ip.dummy.ml"
(**************************************************************************)
(*                                                                        *)
(*                 Copyright 2018-2023 OCamlPro                           *)
(*                                                                        *)
(*  All rights reserved. This file is distributed under the terms of the  *)
(*  GNU Lesser General Public License version 2.1, with the special       *)
(*  exception on linking described in the file LICENSE.                   *)
(*                                                                        *)
(**************************************************************************)

let req_ips : (string, EzAPI.ip_info) Hashtbl.t = Hashtbl.create 1111

let register : float -> string -> unit =
  let first = ref true in
  fun _ _ ->
    if !first then (
      first := false;
      Format.eprintf
        "\027[0;33mwarning: geoip not installed\027[0m\n\
         If you need ip information try: `opam install geoip`@.")
OCaml

Innovation. Community. Security.