aboutsummaryrefslogtreecommitdiffstats
path: root/dns/dns_balance/files/patch-util.rb
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-03-05 08:58:43 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-03-05 08:58:43 +0000
commit274812f3fe38b8ce4d8fb0ded275f156113c8730 (patch)
treee7f0bacb494bbb61a73f26c7d1f6ac6a46d84e3b /dns/dns_balance/files/patch-util.rb
parentef9a3858956118fbfdcc5451ef2ae2274804ffe5 (diff)
Add dns_balance, a dynamic load-balancing DNS server.
Diffstat (limited to 'dns/dns_balance/files/patch-util.rb')
-rw-r--r--dns/dns_balance/files/patch-util.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/dns/dns_balance/files/patch-util.rb b/dns/dns_balance/files/patch-util.rb
new file mode 100644
index 000000000000..f07d4242a82f
--- /dev/null
+++ b/dns/dns_balance/files/patch-util.rb
@@ -0,0 +1,11 @@
+--- util.rb.orig Fri Dec 22 12:46:39 2000
++++ util.rb Mon Mar 5 13:53:57 2001
+@@ -27,7 +27,7 @@
+ #
+ # ex) "127.0.0.1" => "\x7f\x0\x0\x1"
+ def str_to_ipstr(str)
+- arr = str.split(".").filter{|i| i.to_i}
++ arr = str.split(".").collect{|i| i.to_i}
+
+ if arr.length != 4
+ put_log("ipaddr invalid\n")