mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
This doesn't need to be inside the loop. There is only one IP for (potentially) multiple ports, after all..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8921 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
9d2422582c
commit
0ec05c9bb3
@ -418,11 +418,12 @@ void SpanningTreeUtilities::ReadConfiguration(bool rebind)
|
|||||||
{
|
{
|
||||||
irc::portparser portrange(Port, false);
|
irc::portparser portrange(Port, false);
|
||||||
int portno = -1;
|
int portno = -1;
|
||||||
|
|
||||||
|
if (IP == "*")
|
||||||
|
IP.clear();
|
||||||
|
|
||||||
while ((portno = portrange.GetToken()))
|
while ((portno = portrange.GetToken()))
|
||||||
{
|
{
|
||||||
if (IP == "*")
|
|
||||||
IP.clear();
|
|
||||||
|
|
||||||
if ((!transport.empty()) && (hooks.find(transport.c_str()) == hooks.end()))
|
if ((!transport.empty()) && (hooks.find(transport.c_str()) == hooks.end()))
|
||||||
{
|
{
|
||||||
throw CoreException("Can't find transport type '"+transport+"' for port "+IP+":"+Port+" - maybe you forgot to load it BEFORE m_spanningtree in your config file?");
|
throw CoreException("Can't find transport type '"+transport+"' for port "+IP+":"+Port+" - maybe you forgot to load it BEFORE m_spanningtree in your config file?");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user