From a1df1a79017469877faeb05243c8c9c9c0296a55 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 28 Feb 2006 18:46:09 +0000 Subject: Tweaks for unrealisms git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3383 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd_io.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/inspircd_io.cpp') diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 60673d203..a78666afe 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -1224,9 +1224,16 @@ int BindPorts() Config->ConfValue("bind","type",count,Type,&Config->config_f); if ((!*Type) || (!strcmp(Type,"clients"))) { - // modules handle server bind types now, - // its not a typo in the strcmp. + // modules handle server bind types now Config->ports[clientportcount] = atoi(configToken); + + // If the client put bind "*", this is an unrealism. + // We don't actually support this as documented, but + // i got fed up of people trying it, so now it converts + // it to an empty string meaning the same 'bind to all'. + if (*Addr == '*') + *Addr = 0; + strlcpy(Config->addrs[clientportcount],Addr,256); clientportcount++; log(DEBUG,"InspIRCd: startup: read binding %s:%s [%s] from config",Addr,configToken, Type); -- cgit v1.2.3