summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-07-13 00:47:53 +0100
committerPeter Powell <petpow@saberuk.com>2018-07-18 19:21:45 +0100
commit87e328a1fbfcacafc013ba580d31dd4123f1e7e2 (patch)
tree5e7368079fec41e74cd0c30a6b80fa6da7b9599b /src/modules/m_spanningtree
parent8f5952d1e56c9dbefebbacfc7e40546a9df901e8 (diff)
Add the family() member to the sockaddrs union.
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 2fd578698..0b311a0bd 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -243,7 +243,7 @@ void ModuleSpanningTree::ConnectServer(Link* x, Autoconnect* y)
irc::sockets::sockaddrs bind;
if ((!x->Bind.empty()) && (irc::sockets::aptosa(x->Bind, 0, bind)))
{
- if (bind.sa.sa_family == AF_INET)
+ if (bind.family() == AF_INET)
start_type = DNS::QUERY_A;
}