mirror of
https://github.com/coredns/coredns.git
synced 2025-12-06 10:25:10 -05:00
plugin/geoip - Support for ISO 3166-2 subdivisions. (#7728)
Metadata `geoip/subdivisions/code` now available if geoip plugin is used. Signed-off-by: Tomas Boros <tomas.boros92@gmail.com>
This commit is contained in:
@@ -32,6 +32,7 @@ func TestMetadata(t *testing.T) {
|
||||
{"geoip/longitude", "0.1315", cityDBPath, "81.2.69.142"},
|
||||
{"geoip/timezone", "Europe/London", cityDBPath, "81.2.69.142"},
|
||||
{"geoip/postalcode", "CB4", cityDBPath, "81.2.69.142"},
|
||||
{"geoip/subdivisions/code", "ENG,CAM", cityDBPath, "81.2.69.142"},
|
||||
|
||||
// ASN database tests
|
||||
{"geoip/asn/number", "12345", asnDBPath, "81.2.69.142"},
|
||||
|
||||
Reference in New Issue
Block a user