summaryrefslogtreecommitdiff
path: root/modules/m_dns.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2022-12-15 13:07:22 +0000
committerSadie Powell <sadie@witchery.services>2022-12-17 11:50:38 +0000
commitdfdcd3021a482182827ba00782acd5a53442d21a (patch)
treea1fc48af8de2c732a6222c7db9e1c9018de0b785 /modules/m_dns.cpp
parent5fa3d8f9297f50e25a7bad6a9bde91b9024330de (diff)
Add support for linking over UNIX sockets.
Diffstat (limited to 'modules/m_dns.cpp')
-rw-r--r--modules/m_dns.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/m_dns.cpp b/modules/m_dns.cpp
index 45e2a1530..0306abe61 100644
--- a/modules/m_dns.cpp
+++ b/modules/m_dns.cpp
@@ -473,7 +473,7 @@ class TCPSocket : public ListenSocket
int length = 0;
public:
- Client(Manager *m, TCPSocket *l, int fd, const sockaddrs &addr) : Socket(fd, l->IsIPv6()), ClientSocket(l, addr), Timer(5),
+ Client(Manager *m, TCPSocket *l, int fd, const sockaddrs &addr) : Socket(fd, l->GetFamily()), ClientSocket(l, addr), Timer(5),
manager(m)
{
Log(LOG_DEBUG_2) << "Resolver: New client from " << addr.addr();