Skip to content

fix(ipfilter): skip an empty ipfilter.dat and clarify the paranoid tooltip - #581

Merged
got3nks merged 1 commit into
amule-org:masterfrom
got3nks:fix/ipfilter-skip-empty
Jul 24, 2026
Merged

fix(ipfilter): skip an empty ipfilter.dat and clarify the paranoid tooltip#581
got3nks merged 1 commit into
amule-org:masterfrom
got3nks:fix/ipfilter-skip-empty

Conversation

@got3nks

@got3nks got3nks commented Jul 24, 2026

Copy link
Copy Markdown

Two small IP-filter UX fixes from #580 (@ghysler):

Empty ipfilter.datLoadFromFile reported "unknown format encountered" for a 0-byte file, because the format/archive detector doesn't recognise an empty file as a valid (empty) list. An empty file is a legitimate "no ranges" state (a user who cleared it, or an auto-update that hasn't populated it yet), so it now returns 0 ranges quietly.

Paranoid-filter tooltip — the "Paranoid handling of non-matching IPs" checkbox ships enabled, and its tooltip ended with a bare "Use with caution" that didn't say whether the caution applied to enabling or disabling. Reworded to state what the check does and that disabling it is the risk:

Rejects a packet when its source IP differs from the IP the client claims (an anti-spoofing check). Disable only if it causes connection problems.

Catalogs regenerated with scripts/update-po.sh (the reworded string is a new msgid). amuled builds clean; clang-format and Tier-2 clang-tidy clean on the diff.

…oltip

Two IP-filter UX fixes from issue amule-project#580:

- LoadFromFile treated a 0-byte ipfilter.dat as a load failure ("unknown
  format encountered"), because the archive/format detector does not
  recognise an empty file. An empty file is a valid "no ranges" list
  (a user who cleared it, or an auto-update that has not populated it
  yet), so return 0 quietly instead.

- Reword the "Paranoid handling of non-matching IPs" tooltip. The old
  "Use with caution" gave no hint whether caution applied to enabling or
  disabling; the new text says what the check does (anti-spoofing) and
  that disabling it is the risk. Catalogs regenerated via update-po.sh.
@got3nks
got3nks merged commit 7b0ed64 into amule-org:master Jul 24, 2026
14 checks passed
@got3nks
got3nks deleted the fix/ipfilter-skip-empty branch July 24, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant