diff --git a/install/main.go b/install/main.go index fb5ac9a7f..1142f2967 100644 --- a/install/main.go +++ b/install/main.go @@ -188,15 +188,15 @@ func main() { fmt.Println("\n=== MaxMind Database Update ===") if _, err := os.Stat("config/GeoLite2-Country.mmdb"); err == nil { fmt.Println("MaxMind GeoLite2 Country database found.") - if readBool("Would you like to update the MaxMind database to the latest version?", false) { + if readBool("Would you like to update the MaxMind databases (Country and ASN) to the latest version?", false) { if err := downloadMaxMindDatabase(); err != nil { fmt.Printf("Error updating MaxMind database: %v\n", err) fmt.Println("You can try updating it manually later if needed.") } } } else { - fmt.Println("MaxMind GeoLite2 Country database not found.") - if readBool("Would you like to download the MaxMind GeoLite2 database for geoblocking functionality?", false) { + fmt.Println("MaxMind GeoLite2 Country and ASN databases not found.") + if readBool("Would you like to download the MaxMind GeoLite2 databases for blocking functionality?", false) { if err := downloadMaxMindDatabase(); err != nil { fmt.Printf("Error downloading MaxMind database: %v\n", err) fmt.Println("You can try downloading it manually later if needed.") @@ -204,9 +204,11 @@ func main() { // Now you need to update your config file accordingly to enable geoblocking fmt.Print("Please remember to update your config/config.yml file to enable geoblocking! \n\n") // add maxmind_db_path: "./config/GeoLite2-Country.mmdb" under server - fmt.Println("Add the following line under the 'server' section:") + // add maxmind_asn_path: "./config/GeoLite2-ASN.mmdb" under server + fmt.Println("Add the following lines under the 'server' section:") fmt.Println(" maxmind_db_path: \"./config/GeoLite2-Country.mmdb\"") - } + fmt.Println(" maxmind_asn_path: \"./config/GeoLite2-ASN.mmdb\"") + } } }