Hi, On Fri, Jul 11, 2014 at 11:33:19AM +0100, David Carlier wrote: > I was wondering if a generic small geoloc lib might interest ? which can > load dynamically any geo localisation library via dlopen and so on ... to > get, let's say, a country code with an ip address ... can serve for some > purposes (I ll use it for geolocalisation load balancing via relayd) ... >
I would not support plugins or a dlopen() approach in relayd. And doing dlopen in an external library isn't very nice either. So what information would relayd need for geolocalisation? Do you have more details about the concepts? You could run your geolocalisation service as a daemon itself and let relayd connect via a UNIX socket to query the required information. In relayd, the "query an external tool via the socket to get the destination" could be fairly generic and doesn't even have to be geolocalisation- specific. It could be configured as part of the new filter rules that I committed yesterday. Reyk