mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-12 19:14:46 +02:00
Make "geoip_mmdb" the default GEOIP module. So it receives testing.
I still need to update ./Config. I guess we will remove that question entirely.
This commit is contained in:
@@ -313,14 +313,14 @@ loadmodule "utf8only"; /* UTF8ONLY via set::utf8-only */
|
||||
loadmodule "portinfo"; /* storing local_port and server_port of users */
|
||||
loadmodule "isupport"; /* ISUPPORT / numeric 005 handling */
|
||||
|
||||
loadmodule "geoip_classic";
|
||||
@if module-loaded("geoip_classic")
|
||||
loadmodule "geoip_mmdb";
|
||||
@if !defined(NO_GEOIP_CONFIG)
|
||||
@if module-loaded("geoip_mmdb")
|
||||
set {
|
||||
geoip-classic {
|
||||
ipv4-database "https://www.unrealircd.org/files/geo/classic/GeoIP.dat" { url-refresh 14d; url-fail warn; }
|
||||
ipv6-database "https://www.unrealircd.org/files/geo/classic/GeoIPv6.dat" { url-refresh 14d; url-fail warn; }
|
||||
asn-ipv4-database "https://www.unrealircd.org/files/geo/classic/GeoIPASNum.dat" { url-refresh 14d; url-fail warn; }
|
||||
asn-ipv6-database "https://www.unrealircd.org/files/geo/classic/GeoIPASNumv6.dat" { url-refresh 14d; url-fail warn; }
|
||||
}
|
||||
geoip-mmdb {
|
||||
database "https://www.unrealircd.org/files/geo/classic/GeoIP.mmdb" { url-refresh 14d; url-fail warn; }
|
||||
asn-database "https://www.unrealircd.org/files/geo/classic/GeoIP-ASN.mmdb" { url-refresh 14d; url-fail warn; }
|
||||
}
|
||||
}
|
||||
@endif
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user