aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2013-05-21 14:32:37 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2013-05-21 14:32:37 +0100
commitcdf43e9eb5a2c625bc9631d84b24965512b3559f (patch)
treeddd7db7974df2eecd3128e2c0ab73be8b57e945c /lib/mauve
parent8bb164f71dc2b526e838b6ffb13c73ca641d5bbe (diff)
Turning off global reverse dns lookups for sockets.
Diffstat (limited to 'lib/mauve')
-rw-r--r--lib/mauve/server.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/mauve/server.rb b/lib/mauve/server.rb
index bb514ce..8f8cec4 100644
--- a/lib/mauve/server.rb
+++ b/lib/mauve/server.rb
@@ -56,6 +56,11 @@ module Mauve
@bank_holidays = nil
#
+ # Turn off unwanted reverse DNS lookups across the board.
+ #
+ BasicSocket.do_not_reverse_lookup = true
+
+ #
# Set up a blank config.
#
Configuration.current = Configuration.new if Mauve::Configuration.current.nil?