diff options
| author | 2005-12-14 18:00:59 +0000 | |
|---|---|---|
| committer | 2005-12-14 18:00:59 +0000 | |
| commit | 665d01855ea1b54e48c0acdf9db44a8dbf0f3dc6 (patch) | |
| tree | 8d93afff2c44402dac0ce9a1f5f4407aef40e75b /src/inspircd_io.cpp | |
| parent | Moved BindPorts out of main file into inspircd_io.cpp (diff) | |
| download | inspircd++-665d01855ea1b54e48c0acdf9db44a8dbf0f3dc6.tar.gz inspircd++-665d01855ea1b54e48c0acdf9db44a8dbf0f3dc6.tar.bz2 inspircd++-665d01855ea1b54e48c0acdf9db44a8dbf0f3dc6.zip | |
Fixed to use MAXSOCKS
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2431 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd_io.cpp')
| -rw-r--r-- | src/inspircd_io.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 631cf397a..2b5a880cb 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -1037,7 +1037,7 @@ int BindPorts() { // modules handle server bind types now, // its not a typo in the strcmp. - ports[clientportcount] = atoi(configToken); + Config->ports[clientportcount] = atoi(configToken); strlcpy(Config->addrs[clientportcount],Addr,256); clientportcount++; log(DEBUG,"InspIRCd: startup: read binding %s:%s [%s] from config",Addr,configToken, Type); @@ -1052,9 +1052,9 @@ int BindPorts() log(DEBUG,"InspIRCd: startup: bad fd %lu",(unsigned long)openSockfd[boundPortCount]); return(ERROR); } - if (BindSocket(openSockfd[boundPortCount],client,server,ports[count],Config->addrs[count]) == ERROR) + if (BindSocket(openSockfd[boundPortCount],client,server,Config->ports[count],Config->addrs[count]) == ERROR) { - log(DEFAULT,"InspIRCd: startup: failed to bind port %lu",(unsigned long)ports[count]); + log(DEFAULT,"InspIRCd: startup: failed to bind port %lu",(unsigned long)Config->ports[count]); } else /* well we at least bound to one socket so we'll continue */ { |
