aboutsummaryrefslogtreecommitdiffstats
path: root/lib/webrick
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-16 08:43:28 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-16 08:43:28 +0000
commit7d75a78604a83a4bd2eb30af4efa9f13c18966f1 (patch)
tree5d89b66df67554e10d107b831c0b850bf3a1ab64 /lib/webrick
parentdc37d6dababaf1947d9395ba0610097821906791 (diff)
downloadruby-7d75a78604a83a4bd2eb30af4efa9f13c18966f1.tar.gz
* lib/webrick/server.rb: Fix regression bug in WEBrick's
:DoNotReverseLookup config option implementation. [fix GH-731] Patch by @vais * test/webrick/test_do_not_reverse_lookup.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick')
-rw-r--r--lib/webrick/server.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb
index 8b53939c52..815375f30f 100644
--- a/lib/webrick/server.rb
+++ b/lib/webrick/server.rb
@@ -179,7 +179,9 @@ module WEBrick
svrs[0].each{|svr|
@tokens.pop # blocks while no token is there.
if sock = accept_client(svr)
- sock.do_not_reverse_lookup = config[:DoNotReverseLookup]
+ unless config[:DoNotReverseLookup].nil?
+ sock.do_not_reverse_lookup = !!config[:DoNotReverseLookup]
+ end
th = start_thread(sock, &block)
th[:WEBrickThread] = true
thgroup.add(th)