Lines 1-9
Link Here
|
1 |
--- dns_balance.rb.orig 2005-06-10 22:23:56 UTC |
1 |
--- dns_balance.rb.orig 2017-02-09 19:28:01.643383000 -0800 |
2 |
+++ dns_balance.rb |
2 |
+++ dns_balance.rb 2017-02-09 19:26:31.609711000 -0800 |
3 |
@@ -7,14 +7,7 @@ |
3 |
@@ -8,14 +8,7 @@ |
4 |
# $Id: dns_balance.rb,v 1.25 2003/06/13 22:07:27 elca Exp $ |
4 |
# $Id: dns_balance.rb,v 1.26 2017-02-09 17:18:59 chrish Exp $ |
5 |
|
5 |
|
6 |
# DNS Balance ¤Î¸ºß¤¹¤ë¥Ñ¥¹Ì¾ |
6 |
# DNS Balance |
7 |
-if ENV["ROOT"] == nil |
7 |
-if ENV["ROOT"] == nil |
8 |
- warn("\"ROOT\" environment is recommended. Use current directory in this time.") |
8 |
- warn("\"ROOT\" environment is recommended. Use current directory in this time.") |
9 |
- PREFIX = "." |
9 |
- PREFIX = "." |
Lines 16-22
Link Here
|
16 |
$LOAD_PATH.freeze |
16 |
$LOAD_PATH.freeze |
17 |
|
17 |
|
18 |
require 'socket' |
18 |
require 'socket' |
19 |
@@ -204,6 +197,14 @@ OptionParser::new { |
19 |
@@ -204,6 +197,14 @@ |
20 |
opt.on("--as", "Enable AS namespace") { |
20 |
opt.on("--as", "Enable AS namespace") { |
21 |
OPT["as"] = true |
21 |
OPT["as"] = true |
22 |
} |
22 |
} |
Lines 31-37
Link Here
|
31 |
opt.on_tail("-h", "--help", "Show this help message and exit") { |
31 |
opt.on_tail("-h", "--help", "Show this help message and exit") { |
32 |
STDERR.printf("%s", opt.to_s) |
32 |
STDERR.printf("%s", opt.to_s) |
33 |
exit(111) |
33 |
exit(111) |
34 |
@@ -212,10 +213,42 @@ OptionParser::new { |
34 |
@@ -212,10 +213,42 @@ |
35 |
} |
35 |
} |
36 |
OPT.freeze |
36 |
OPT.freeze |
37 |
|
37 |
|
Lines 77-83
Link Here
|
77 |
ML.log("start") |
77 |
ML.log("start") |
78 |
|
78 |
|
79 |
|
79 |
|
80 |
@@ -224,7 +257,7 @@ ML.log("start") |
80 |
@@ -224,7 +257,7 @@ |
81 |
# |
81 |
# |
82 |
Thread::start { |
82 |
Thread::start { |
83 |
loop { |
83 |
loop { |
Lines 86-92
Link Here
|
86 |
begin |
86 |
begin |
87 |
load("addr") |
87 |
load("addr") |
88 |
|
88 |
|
89 |
@@ -234,7 +267,7 @@ Thread::start { |
89 |
@@ -234,7 +267,7 @@ |
90 |
end |
90 |
end |
91 |
end |
91 |
end |
92 |
|
92 |
|