Dockerfile and some add/fix config

This commit is contained in:
dalbodeule
2025-10-14 21:21:12 +09:00
parent e261ec59a1
commit bc3cd19b24
6 changed files with 72 additions and 30 deletions

View File

@@ -30,10 +30,7 @@ func GetIPInfo(ip string, db *geoip2.Reader) *IpInfo {
country := func(ip net.IP) string {
country, _ := db.Country(parsedIp)
println(country.Country.IsoCode)
if country != nil && country.Country.IsoCode != "" {
println(country.Country.IsoCode)
return country.Country.IsoCode
} else {
return "ZZ"