Clean up commit f366325b3b a bit

This commit is contained in:
Ben Hollis 2015-05-03 15:01:00 -07:00
parent f366325b3b
commit cf58acda30
2 changed files with 2 additions and 1 deletions

View file

@ -2,6 +2,7 @@ master
===
* The preview server can now serve over HTTPS using the `--https` flag. It will use an automatic self-signed cert which can be overridden using `--ssl_certificate` and `--ssl_private_key`. These settings can also be set in `config.rb`
* The preview server URL will use 'localhost' rather than '0.0.0.0'.
3.3.11
===

View file

@ -267,7 +267,7 @@ module Middleman
# Returns the URI the preview server will run on
# @return [URI]
def uri
host = @host.eql?('0.0.0.0') ? 'localhost' : @host
host = @host == '0.0.0.0' ? 'localhost' : @host
scheme = https? ? 'https' : 'http'
URI("#{scheme}://#{host}:#{@port}")
end