diff options
| author | 2025-04-13 17:03:08 +0100 | |
|---|---|---|
| committer | 2025-04-13 17:03:08 +0100 | |
| commit | d0e321b92c55902ccb3ca98ddd8553cb57e55c77 (patch) | |
| tree | d7e0f9cdbe7d292b8409b0156da449eb9299c74e /modules/spanningtree/utils.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
| parent | Remove the {fmt} headers that we don't use. (diff) | |
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/spanningtree/utils.cpp')
| -rw-r--r-- | modules/spanningtree/utils.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/spanningtree/utils.cpp b/modules/spanningtree/utils.cpp index 9477f9d72..66d5d3444 100644 --- a/modules/spanningtree/utils.cpp +++ b/modules/spanningtree/utils.cpp @@ -296,6 +296,12 @@ void SpanningTreeUtilities::ReadConfiguration() L->Bind = tag->getString("bind"); L->Hidden = tag->getBool("hidden"); + if (!tag->getString("ssl").empty()) + { + throw ModuleException((Module*)Creator, "Obsolete TLS configuration in link block at {}. See {}modules/spanningtree/#link for the correct way to configure TLS.", + tag->source.str(), INSPIRCD_DOCS); + } + if (L->Name.empty()) throw ModuleException((Module*)Creator, "Invalid configuration, found a link tag without a name!" + (!L->IPAddr.empty() ? " IP address: "+L->IPAddr : "")); |
