LOW: Fragile prefix stripping in blocklist loader scanner

Open Beginner friendly
#232 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
66/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Quiet
Tech stack
go
Domain
networking

Research direction

Open internal/blocklist/loader.go around lines 15–35 and inspect scanBlocklist's prefix-stripping loop. Trace how nested prefixes such as www.0.0.0.0 are handled, then simplify the logic so stripping is deterministic. Done means the loader no longer relies on fragile loop behavior for these edge cases.

Written by the indexing model from the issue text.

Description

bug

Low: Fragile Prefix Stripping in Blocklist Scanner

File: internal/blocklist/loader.go (lines ~15–35)
Severity: Low
Priority: Nice to Have

Description

scanBlocklist strips prefixes in a loop that could lead to edge cases with nested prefixes like www.0.0.0.0.

Fix

Simplify and make prefix stripping deterministic.

Dominant language
Go
Stars
2
Forks
0
Avg merge
4h 14m
Merged PRs (30d)
49

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rm-hull/dot-block

All issues in rm-hull/dot-block

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.