Clean up commit f366325b3b
a bit
This commit is contained in:
parent
f366325b3b
commit
cf58acda30
|
@ -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
|
||||
===
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue