back out IP detection
This commit is contained in:
parent
419a81fffb
commit
8f75f6516d
|
@ -15,7 +15,7 @@ module Middleman::Cli
|
|||
method_option :host,
|
||||
:type => :string,
|
||||
:aliases => '-h',
|
||||
:default => Socket.ip_address_list.find(&:ipv4_private?).ip_address,
|
||||
:default => '0.0.0.0',
|
||||
:desc => 'Bind to HOST address'
|
||||
method_option :port,
|
||||
:aliases => '-p',
|
||||
|
|
|
@ -15,7 +15,7 @@ module Middleman
|
|||
# @return [void]
|
||||
def start(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
|
||||
|
||||
mount_instance(new_app)
|
||||
|
|
Loading…
Reference in a new issue