class Middleman::PreviewServer::AllIpv4Interfaces

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

def self.matches?(opts={})

def self.matches?(opts={})
  opts[:bind_address] == '0.0.0.0' && opts[:server_name].blank?
end

def after_init

def after_init
  @listeners << ServerIpAddress.new('0.0.0.0')
end

def local_network_interfaces

Use only ipv4 interfaces
def local_network_interfaces
  network_interfaces_inventory.nil? ? [] : network_interfaces_inventory.network_interfaces(:ipv4)
end