Fix match geoip

This commit is contained in:
世界
2023-02-07 12:20:47 +08:00
parent 86ea035bdd
commit 960d04d172
2 changed files with 40 additions and 21 deletions

View File

@@ -4,7 +4,6 @@ import (
"net/netip"
E "github.com/sagernet/sing/common/exceptions"
N "github.com/sagernet/sing/common/network"
"github.com/oschwald/maxminddb-golang"
)
@@ -31,8 +30,5 @@ func (r *Reader) Lookup(addr netip.Addr) string {
if code != "" {
return code
}
if !N.IsPublicAddr(addr) {
return "private"
}
return "unknown"
}