SinatraでWEBrickのDNS逆引きを抑制するサンプル
require 'sinatra' | |
class Rack::Handler::WEBrick | |
class << self | |
alias_method :run_original, :run | |
end | |
def self.run(app, options={}) | |
options[:DoNotReverseLookup] = true | |
run_original(app, options) | |
end | |
end | |
get '/' do | |
"hello, world" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment