FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
void URI::registerValidLocalhost ( std::string  domain,
std::string  ip = "" 
)
static

Registers a domain as a valid localhost address

Parameters
domainthe domain to register as a valid localhost address (such as localhost.firebreath.org)
ipoptional IP address to indicate as a valid localhost. If none specified, default is loopback
See Also
isLocalhost
resetValidLocalhost
Since
1.4b1

Definition at line 183 of file URI.cpp.

184 {
185  if (ip.empty()) {
186  ip = boost::asio::ip::address_v4::loopback().to_string();
187  }
188  m_lhMap[domain] = ip;
189 }