diff options
author | elijah <elijah@riseup.net> | 2014-10-29 16:58:23 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-10-29 16:58:23 -0700 |
commit | 1b4a0769f5ce4708758c10952370cb06cc2201e9 (patch) | |
tree | 2fb864dda5162aaf2ab98e8e3c9b301cc85561ad | |
parent | 05f7d47166230c0556140f2a349439b3bc27d347 (diff) |
bind nickserver only to localhost
-rw-r--r-- | lib/nickserver/server.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nickserver/server.rb b/lib/nickserver/server.rb index 7f74564..61d0b11 100644 --- a/lib/nickserver/server.rb +++ b/lib/nickserver/server.rb @@ -17,11 +17,11 @@ module Nickserver # Available options: # # * :port (default Nickserver::Config.port) - # * :host (default 0.0.0.0) + # * :host (default 127.0.0.1) # def self.start(opts={}) Nickserver::Config.load - options = {:host => '0.0.0.0', :port => Nickserver::Config.port.to_i}.merge(opts) + options = {:host => '127.0.0.1', :port => Nickserver::Config.port.to_i}.merge(opts) unless defined?(TESTING) puts "Starting nickserver #{options[:host]}:#{options[:port]}" end |