Class: Middleman::PreviewServer::AllIpv6Interfaces
- Inherits:
-
AllInterfaces
- Object
- BasicInformation
- AllInterfaces
- Middleman::PreviewServer::AllIpv6Interfaces
- Defined in:
- lib/middleman-core/preview_server/information.rb
Overview
This is used if bind address is ::, the server name needs to be blank
Instance Attribute Summary
Attributes inherited from BasicInformation
#bind_address, #listeners, #port, #reason, #server_name, #site_addresses, #valid
Class Method Summary collapse
Instance Method Summary collapse
-
#local_network_interfaces ⇒ Object
Use only ipv6 interfaces.
Methods inherited from AllInterfaces
Methods inherited from BasicInformation
#initialize, #resolve_me, #show_me_network_interfaces, #valid?, #validate_me
Constructor Details
This class inherits a constructor from Middleman::PreviewServer::AllInterfaces
Class Method Details
.matches?(opts = {}) ⇒ Boolean
167 168 169 |
# File 'lib/middleman-core/preview_server/information.rb', line 167 def self.matches?(opts={}) opts[:bind_address] == '::' && opts[:server_name].blank? end |
Instance Method Details
#local_network_interfaces ⇒ Object
Use only ipv6 interfaces
172 173 174 |
# 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 |