Add support for matching continents

This commit is contained in:
Daniel
2023-08-28 15:27:03 +02:00
parent 28a4ea4709
commit 548685694c
2 changed files with 67 additions and 0 deletions

View File

@@ -232,6 +232,10 @@ func parseEndpoint(value string) (endpoint Endpoint, err error) { //nolint:gocog
if endpoint, err = parseTypeCountry(fields); endpoint != nil || err != nil {
return
}
// continent
if endpoint, err = parseTypeContinent(fields); endpoint != nil || err != nil {
return
}
// asn
if endpoint, err = parseTypeASN(fields); endpoint != nil || err != nil {
return