https://gitlab.synchro.net/main/sbbs/-/commit/a5bafa51b8728f98cd464ec8
Modified Files:
src/sbbs3/scfg/scfgsrvr.c
Log Message:
scfg: refine Rate Limiting menus -- hide dead options, restore labels
Three small fixups to the SCFG rate-limit menu work added in d7c823c9d:
1) In rate_limit_cfg() (the shared submenu), hide the subnet-prefix and
auto-filter options entirely when no rate limit is configured -- they
have nothing to act on. Likewise hide the auto-filter duration /
silent / subnet-threshold trio when the filter threshold is 0. Net
result: switching a rate limit off collapses the submenu to just the
"Limit Rate of ..." item; turning the auto-filter on/off
reveals/hides only the sub-knobs that depend on it.
2) For servers that support only one type of rate limit (FTP, Mail,
Services), restore the parent menu label from the post-refactor
"Rate Limiting..." back to the original "Limit Rate of Requests"
(FTP, Mail) / "Limit Rate of Connections" (Services), and inline
the live values ("3600 per 1 hour, Auto-Filter") the way the
pre-refactor menus did. Web keeps "Rate Limiting..." since it has
both connect-rate AND request-rate items.
3) Expand the "Count IPv4/IPv6 Clients By" help text to explain why
the IPv6 default is /64 while IPv4 stays per-host (paired with the
ini default change in the previous commit).
Co-Authored-By: Claude Opus 4.7 (1M context) <
noreply@anthropic.com>
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net