aboutsummaryrefslogtreecommitdiffstats
path: root/modules/spanningtree/utils.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-06-24 03:40:44 +0100
committerGravatar Sadie Powell2026-06-24 21:21:59 +0100
commit7ec34045f5ffbd548ddb72a712a0b175b953ffee (patch)
tree2961563a88f0a7cf2fa1139fcb8e5bcbb46eb2fe /modules/spanningtree/utils.cpp
parentMerge branch 'insp4' into master. (diff)
Move the challenge out of CAPAB CAPABILITIES into its own command.
Diffstat (limited to 'modules/spanningtree/utils.cpp')
-rw-r--r--modules/spanningtree/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/spanningtree/utils.cpp b/modules/spanningtree/utils.cpp
index 4a508f544..c6af1ec2c 100644
--- a/modules/spanningtree/utils.cpp
+++ b/modules/spanningtree/utils.cpp
@@ -302,8 +302,8 @@ void SpanningTreeUtilities::ReadConfiguration(ConfigStatus& status)
if ((L->SendPass.find(' ') != std::string::npos) || (L->RecvPass.find(' ') != std::string::npos))
throw ModuleException(Creator->weak_from_this(), "Link block '" + L->Name + "' has a password set that contains a space character which is invalid");
- if ((L->SendPass[0] == ':') || (L->RecvPass[0] == ':'))
- throw ModuleException(Creator->weak_from_this(), "Link block '" + L->Name + "' has a password set that begins with a colon (:) which is invalid");
+ if ((L->SendPass[0] == ':') || (L->RecvPass[0] == ':') || (L->SendPass[0] == '$') || (L->RecvPass[0] == '$'))
+ throw ModuleException(Creator->weak_from_this(), "Link block '" + L->Name + "' has a password set that begins with a colon (:) or dollar sign ($) which is invalid");
if (L->IPAddr.empty())
{