diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-24 20:30:44 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-24 20:30:44 +0000 |
commit | 672d7d4ee88470611d4397b8773e70c2083339c2 (patch) | |
tree | 4711a63764f4e50ae725a6723f2b6d58ada182c1 /src | |
parent | 5b5f6f678c58d5313a268c2119fbd59899a7f643 (diff) |
Another tweak for port
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3320 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/socket.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index cb2eeb041..949cc44ac 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -59,7 +59,7 @@ InspSocket::InspSocket(int newfd, char* ip) socket_ref[this->fd] = this; } -InspSocket::InspSocket(std::string ahost, int port, bool listening, unsigned long maxtime) +InspSocket::InspSocket(std::string ahost, int aport, bool listening, unsigned long maxtime) { this->fd = -1; this->host = ahost; @@ -74,7 +74,7 @@ InspSocket::InspSocket(std::string ahost, int port, bool listening, unsigned lon } else { - if (BindSocket(this->fd,this->client,this->server,port,(char*)ahost.c_str()) == ERROR) + if (BindSocket(this->fd,this->client,this->server,aport,(char*)ahost.c_str()) == ERROR) { this->Close(); this->fd = -1; @@ -96,7 +96,7 @@ InspSocket::InspSocket(std::string ahost, int port, bool listening, unsigned lon else { this->host = ahost; - this->port = port; + this->port = aport; if (!inet_aton(host.c_str(),&addy)) { |