summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-01 19:47:28 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-01 19:47:28 +0000
commitd891a461a32271e6326541b72195a8dd7dd9c271 (patch)
tree0a5626b44d11438165c0d9bd2a228e8b749f20c7 /src
parent747dc02862b40c5902ccd760f96316cd06397b54 (diff)
Allow <link password=""> to specify identical send/recv passwords
This can be simpler to use (don't need to swap send/recv between servers) Having identical passwords is very slightly less secure than having them differ; this doesn't remove sendpass/recvpass. It is recommended to use SSL fingerprints to authenticate servers for best security. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12348 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp
index 202a41d04..d35d9ac83 100644
--- a/src/modules/m_spanningtree/utils.cpp
+++ b/src/modules/m_spanningtree/utils.cpp
@@ -371,8 +371,8 @@ void SpanningTreeUtilities::ReadConfiguration()
L->AllowMask = tag->getString("allowmask");
L->IPAddr = tag->getString("ipaddr");
L->Port = tag->getInt("port");
- L->SendPass = tag->getString("sendpass");
- L->RecvPass = tag->getString("recvpass");
+ L->SendPass = tag->getString("sendpass", tag->getString("password"));
+ L->RecvPass = tag->getString("recvpass", tag->getString("password"));
L->Fingerprint = tag->getString("fingerprint");
L->HiddenFromStats = tag->getBool("statshidden");
L->Timeout = tag->getInt("timeout");