mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-22 19:33:32 +02:00
Fix: config loader
This commit is contained in:
parent
5d5beb2028
commit
1c3abb2ec3
1 changed files with 5 additions and 0 deletions
|
@ -100,6 +100,11 @@ func ParaseIPList(ips []string) ([]*GeoIP, error) {
|
|||
if strings.HasPrefix(ip, "geoip:") {
|
||||
country := ip[6:]
|
||||
isReverseMatch := false
|
||||
if strings.HasPrefix(country, "!") {
|
||||
country = country[1:]
|
||||
isReverseMatch = true
|
||||
}
|
||||
|
||||
geoipc, err := LoadGeoIP(strings.ToUpper(country))
|
||||
if err != nil {
|
||||
return nil, newError("failed to load GeoIP: ", country).Base(err)
|
||||
|
|
Loading…
Reference in a new issue