- throw CoreException("Invalid configuration for server '"+assign(L.Name)+"', IP address not defined!");
+ L.IPAddr = "*";
+ ValidIPs.push_back("*");
+ ServerInstance->Logs->Log("m_spanningtree",DEFAULT,"Configuration warning: Link block " + assign(L.Name) + " has no IP defined! This will allow any IP to connect as this server, and MAY not be what you want.");
}
- else if (L.RecvPass.empty())
+
+ if (L.RecvPass.empty())
{
throw CoreException("Invalid configuration for server '"+assign(L.Name)+"', recvpass not defined!");
}
- else if (L.SendPass.empty())
+
+ if (L.SendPass.empty())
{
throw CoreException("Invalid configuration for server '"+assign(L.Name)+"', sendpass not defined!");
}
- else if (L.Name.empty())
+
+ if (L.Name.empty())
{
throw CoreException("Invalid configuration, link tag without a name! IP address: "+L.IPAddr);
}
- else if (!L.Port)
+
+ if (!L.Port)
{
- throw CoreException("Invalid configuration for server '"+assign(L.Name)+"', no port specified!");
+ ServerInstance->Logs->Log("m_spanningtree",DEFAULT,"Configuration warning: Link block " + assign(L.Name) + " has no port defined, you will not be able to /connect it.");