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

Debian JP master SVN www commits (rev.1084)



=======================================================
Repository: /org/svn.debian.or.jp/repos
  Revision: 1084
  Commiter: yasu
      Date: 2010-09-26 16:34:57 +0900 (日, 26  9月 2010)
=======================================================
Log:

enable ASN

=======================================================
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:05:18 UTC (rev 1083)
+++ cdn/trunk/DNS-Balance/dns_balance.rb	2010-09-26 07:34:57 UTC (rev 1084)
@@ -463,10 +463,12 @@
   opt.on("--geoip", "Enable GeoIP ") {
     OPT["country"] = true
     OPT["continent"] = true
+    OPT["as"] = true
   }
   opt.on("--no-geoip", "Disable GeoIP ") {
     OPT["country"] = false
     OPT["continent"] = false
+    OPT["as"] = false
     OPT["nogeoip"] = true
   }
   opt.on("--country", "Enable Country by GeoIP ") {
@@ -475,8 +477,8 @@
   opt.on("--continent", "Enable Continent by GeoIP ") {
     OPT["continent"] = true
   }
-  opt.on("--as", "Enable AS namespace") {
-    OPT["as"] = true
+  opt.on("--no-as", "Disable AS namespace") {
+    OPT["as"] = false
   }
   opt.on("-F", "Unfork (test purpose)") {
     OPT["unfork"] = true
@@ -490,7 +492,9 @@
 unless OPT["nogeoip"] == true
   OPT["country"] = true
   OPT["continent"] = true
+  OPT["as"] = false
 end
+
 OPT.freeze