summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/main.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-08-06 21:24:30 +0100
committerGitHub <noreply@github.com>2017-08-06 21:24:30 +0100
commit6de3017e2cda445bfd9e6b460a35eae7fc199148 (patch)
tree510ff17fb08d589cc6a096173a88dd45fe0f5a61 /src/modules/m_spanningtree/main.cpp
parent02497bfa999da26c19a92d8620c35bb97f1da711 (diff)
parentf2da7dd588adb52148f0cd4779cde29b372cdc2e (diff)
Merge pull request #1141 from SaberUK/master+windows-purge
Purge code for Windows XP and MSVC pre-2015.
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
-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 6bf9e8044..321ed99b8 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -209,7 +209,7 @@ void ModuleSpanningTree::ConnectServer(Link* x, Autoconnect* y)
else
{
in_addr n;
- if (inet_aton(x->IPAddr.c_str(),&n) < 1)
+ if (inet_pton(AF_INET, x->IPAddr.c_str(),&n) < 1)
ipvalid = false;
}