Skip to content

Commit

Permalink
Merge branch 'MetaCubeX:Alpha' into Alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
xishang0128 authored Mar 11, 2024
2 parents f93575f + 99b6ffa commit fe90a89
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions component/mmdb/patch_android.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ package mmdb
import "github.com/oschwald/maxminddb-golang"

func InstallOverride(override *maxminddb.Reader) {
newReader := Reader{Reader: override}
newReader := IPReader{Reader: override}
switch override.Metadata.DatabaseType {
case "sing-geoip":
reader.databaseType = typeSing
IPreader.databaseType = typeSing
case "Meta-geoip0":
reader.databaseType = typeMetaV0
IPreader.databaseType = typeMetaV0
default:
reader.databaseType = typeMaxmind
IPreader.databaseType = typeMaxmind
}
reader = newReader
IPreader = newReader
}

0 comments on commit fe90a89

Please sign in to comment.