[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debian JP master SVN www commits (rev.1086)



=======================================================
Repository: /org/svn.debian.or.jp/repos
  Revision: 1086
  Commiter: yasu
      Date: 2010-09-26 21:44:22 +0900 (日, 26  9月 2010)
=======================================================
Log:

 as GeoIP.dat

=======================================================
Changed:

U   cdn/trunk/DNS-Balance/dns_balance.rb

Modified: cdn/trunk/DNS-Balance/dns_balance.rb
===================================================================
--- cdn/trunk/DNS-Balance/dns_balance.rb	2010-09-26 07:59:24 UTC (rev 1085)
+++ cdn/trunk/DNS-Balance/dns_balance.rb	2010-09-26 12:44:22 UTC (rev 1086)
@@ -162,12 +162,12 @@
 
 
 def geoip_search_country(str)
-  geo = GeoIP.new('/usr/share/GeoIP/GeoIP.dat').country(str)
+  geo = GeoIP.new($fgeoip).country(str)
   return geo[4]
 end
 
 def geoip_search_continent(str)
-  geo = GeoIP.new('/usr/share/GeoIP/GeoIP.dat').country(str)
+  geo = GeoIP.new($fgeoip).country(str)
   return geo[6]
 end