Fix match geoip

This commit is contained in:
世界 committed 2023-02-07 12:21:00 +08:00
1 parent 86ea035bdd
commit 960d04d172
2 files changed
+40 -21

No files matched your search

-4
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"
}