g3proxy: support load of geoip_db

This commit is contained in:
Zhang Jingqiang 2023-09-12 16:35:54 +08:00
parent c9204ee844
commit d3d466bf8b
7 changed files with 80 additions and 3 deletions

View file

@ -20,7 +20,10 @@ geo_rules
**optional**, **type**: seq
If the resolved upstream ip address lpm match the network in the rules, that escaper will be selected.
Set the GeoIP rules to select next escaper.
Remember to set :ref:`geoip_db <configuration_geoip_db>` in main conf to enable GeoIP lookup.
If not set, this escaper will just behave like :ref:`route_resolved <configuration_escaper_route_resolved>` escaper.
Each rule is in *map* format, with two keys: