class Middleman::PreviewServer::AllIpv6Interfaces
This is used if bind address is ::, the server name needs to be blank
Public Class Methods
Source
# File lib/middleman-core/preview_server/information.rb, line 167 def self.matches?(opts={}) opts[:bind_address] == '::' && opts[:server_name].blank? end
Public Instance Methods
Source
# File lib/middleman-core/preview_server/information.rb, line 172 def local_network_interfaces network_interfaces_inventory.nil? ? [] : network_interfaces_inventory.network_interfaces(:ipv6) end
Use only ipv6 interfaces
Private Instance Methods
Source
# File lib/middleman-core/preview_server/information.rb, line 178 def after_init @listeners << ServerIpAddress.new('::') end