From d891a461a32271e6326541b72195a8dd7dd9c271 Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 1 Feb 2010 19:47:28 +0000 Subject: Allow 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 --- src/modules/m_spanningtree/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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"); -- cgit v1.2.3