diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-02-18 02:31:01 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-02-18 02:31:01 +0100 |
commit | 2d0fdb74d134343642a9e1d2ea21b033aea45f44 (patch) | |
tree | dad7401a25211479fa23dc8f3bda505d86dc3075 | |
parent | 80588fba818b746d43adf978d09933fda79b5e1f (diff) |
Fix setsockopt() with SO_REUSEADDR not working due to wrong argument type
-rw-r--r-- | src/sockets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sockets.cpp b/src/sockets.cpp index 948f3e238..f50092744 100644 --- a/src/sockets.cpp +++ b/src/sockets.cpp @@ -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); |