back out IP detection
This commit is contained in:
parent
419a81fffb
commit
8f75f6516d
|
@ -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',
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue