diff options
author | Peter Powell <petpow@saberuk.com> | 2018-07-13 00:47:53 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-07-18 19:21:45 +0100 |
commit | 87e328a1fbfcacafc013ba580d31dd4123f1e7e2 (patch) | |
tree | 5e7368079fec41e74cd0c30a6b80fa6da7b9599b /src/modules/m_spanningtree | |
parent | 8f5952d1e56c9dbefebbacfc7e40546a9df901e8 (diff) |
Add the family() member to the sockaddrs union.
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/main.cpp | 2 |
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; } |