From a50ca3a49d4c267b693f1c0aebc40f654812a3bd Mon Sep 17 00:00:00 2001 From: Eliott Appleford Date: Fri, 11 Apr 2014 14:11:44 +0100 Subject: [PATCH] Change default IP Enables #1248 by default. --- middleman-core/lib/middleman-core/cli/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleman-core/lib/middleman-core/cli/server.rb b/middleman-core/lib/middleman-core/cli/server.rb index 782d9faf..73bd7c13 100644 --- a/middleman-core/lib/middleman-core/cli/server.rb +++ b/middleman-core/lib/middleman-core/cli/server.rb @@ -15,7 +15,7 @@ module Middleman::Cli method_option :host, :type => :string, :aliases => '-h', - :default => '0.0.0.0', + :default => Socket.ip_address_list.find(&:ipv4_private?).ip_address, :desc => 'Bind to HOST address' method_option :port, :aliases => '-p',