Browse Source

Work with newest geoip pkg

Ask Bjørn Hansen 13 years ago
parent
commit
f40d30af31
1 changed files with 1 additions and 2 deletions
  1. 1 2
      geoip.go

+ 1 - 2
geoip.go

@@ -6,9 +6,8 @@ import (
 )
 )
 
 
 func setupGeoIP() *geoip.GeoIP {
 func setupGeoIP() *geoip.GeoIP {
-	file := "/opt/local/share/GeoIP/GeoIP.dat"
 
 
-	gi := geoip.GeoIP_Open(file)
+	gi := geoip.Open()
 	if gi == nil {
 	if gi == nil {
 		log.Printf("Could not open GeoIP database\n")
 		log.Printf("Could not open GeoIP database\n")
 		return nil
 		return nil