BBS:      TELESC.NET.BR
Assunto:  src/sbbs3/ftpsrvr.cpp login.cpp mailsrvr.cpp main.cpp services.cpp web
De:       Rob Swindell (on Debian Linux)
Data:     Thu, 21 May 2026 20:23:05 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/be8ba77c24df2405a8e6c5c4
Modified Files:
	src/sbbs3/ftpsrvr.cpp login.cpp mailsrvr.cpp main.cpp services.cpp websrvr.cpp
Log Message:
Only log !BLOCKING IP ADDRESS when filter_ip() actually filters the IP

filter_ip() returns false when the IP/host is exempt (listed in
ipfilter_exempt.cfg), when ip_addr is NULL, or when the filter file
can't be opened -- in none of those cases is the address actually added
to the filter. The "!BLOCKING IP ADDRESS" notices were logged
unconditionally before the call, so an exempt IP in the auto-filter
paths would still produce a misleading "BLOCKING" log line even though
filter_ip() then declined to add it.

Gate each notice on filter_ip() returning true. In the SMTP SPAM-bait
path, also fold the call into the condition so the " and BLOCKED" tag is
only appended on an actual block.

Co-Authored-By: Claude Opus 4.7 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]