mirror of
https://github.com/anope/anope.git
synced 2026-06-26 02:26:39 +02:00
Fix setsockopt() with SO_REUSEADDR not working due to wrong argument type
This commit is contained in:
+1
-1
@@ -517,7 +517,7 @@ ListenSocket::ListenSocket(const Anope::string &bindip, int port, bool i)
|
||||
{
|
||||
this->SetBlocking(false);
|
||||
|
||||
const char op = 1;
|
||||
int op = 1;
|
||||
setsockopt(this->GetFD(), SOL_SOCKET, SO_REUSEADDR, &op, sizeof(op));
|
||||
|
||||
this->bindaddr.pton(i ? AF_INET6 : AF_INET, bindip, port);
|
||||
|
||||
Reference in New Issue
Block a user