class Middleman::PreviewServer::AllIpv6Interfaces

This is used if bind address is ::, the server name needs to be blank

Public Class Methods

matches?(opts={}) click to toggle 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

local_network_interfaces() click to toggle source

Use only ipv6 interfaces

# 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

Private Instance Methods

after_init() click to toggle source
# File lib/middleman-core/preview_server/information.rb, line 178
def after_init
  @listeners << ServerIpAddress.new('::')
end