back out IP detection

This commit is contained in:
Thomas Reynolds 2014-04-14 10:34:53 -07:00
parent 419a81fffb
commit 8f75f6516d
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ module Middleman::Cli
method_option :host, method_option :host,
:type => :string, :type => :string,
:aliases => '-h', :aliases => '-h',
:default => Socket.ip_address_list.find(&:ipv4_private?).ip_address, :default => '0.0.0.0',
:desc => 'Bind to HOST address' :desc => 'Bind to HOST address'
method_option :port, method_option :port,
:aliases => '-p', :aliases => '-p',

View file

@ -15,7 +15,7 @@ module Middleman
# @return [void] # @return [void]
def start(opts={}) def start(opts={})
@options = opts @options = opts
@host = @options[:host] || Socket.ip_address_list.find(&:ipv4_private?).ip_address @host = @options[:host] || '0.0.0.0'
@port = @options[:port] || DEFAULT_PORT @port = @options[:port] || DEFAULT_PORT
mount_instance(new_app) mount_instance(new_app)