From 274812f3fe38b8ce4d8fb0ded275f156113c8730 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Mon, 5 Mar 2001 08:58:43 +0000 Subject: Add dns_balance, a dynamic load-balancing DNS server. --- dns/dns_balance/files/patch-util.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 dns/dns_balance/files/patch-util.rb (limited to 'dns/dns_balance/files/patch-util.rb') 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") -- cgit v1.2.3