summaryrefslogtreecommitdiff
path: root/modules/m_proxyscan.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2023-11-26 13:26:38 +0000
committerSadie Powell <sadie@witchery.services>2023-11-26 13:26:38 +0000
commit2d2d1972e965ff41b9e79a53b2bc7e739f798000 (patch)
tree7e99842e03c78ee6db7d940de586b71eed5abe67 /modules/m_proxyscan.cpp
parent2b21264fb02e59662365ae4aa4f88647b4ea4dc8 (diff)
Fix some modules that weren't converted to the new socket ctor.
Closes #330.
Diffstat (limited to 'modules/m_proxyscan.cpp')
-rw-r--r--modules/m_proxyscan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/m_proxyscan.cpp b/modules/m_proxyscan.cpp
index 50a0b021c..d2b901d64 100644
--- a/modules/m_proxyscan.cpp
+++ b/modules/m_proxyscan.cpp
@@ -42,7 +42,7 @@ class ProxyCallbackListener : public ListenSocket
};
public:
- ProxyCallbackListener(const Anope::string &b, int p) : Socket(-1, b.find(':') != Anope::string::npos), ListenSocket(b, p, false)
+ ProxyCallbackListener(const Anope::string &b, int p) : Socket(-1, b.find(':') == Anope::string::npos ? AF_INET : AF_INET6), ListenSocket(b, p, false)
{
}