class Middleman::PreviewServer::ServerInformationCallbackProxy
modify these information.
All information is “duped” and the callback is not meant to be used to
* site_addresses
* server name
* port
* listeners
This class wraps server information to be used in call back
def initialize(server_information)
def initialize(server_information) @listeners = ServerUrl.new( hosts: server_information.listeners, port: server_information.port, https: server_information.https?, format_output: false ).to_bind_addresses @port = server_information.port @server_name = server_information.server_name.dup unless server_information.server_name.nil? @site_addresses = ServerUrl.new( hosts: server_information.site_addresses, port: server_information.port, https: server_information.https?, format_output: false ).to_urls end