Webrick should not do reverse DNS lookups

This prevents Middleman server from being terribly slow over network. Closes #1118.
This commit is contained in:
Andrey 'lolmaus' Mikhaylov 2014-03-27 11:58:31 +03:00
parent dd9c05f433
commit db59447e82

View file

@ -166,9 +166,10 @@ module Middleman
# @return [void]
def setup_webrick(is_logging)
http_opts = {
:BindAddress => host,
:Port => port,
:AccessLog => []
:BindAddress => host,
:Port => port,
:AccessLog => [],
:DoNotReverseLookup => true
}
if is_logging