Ultimate tool for managing hostlists written in go
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ITmodulo 273617329e Implementing logic, added first test 5 months ago
cmd Implementing logic, added first test 5 months ago
processing Implementing logic, added first test 5 months ago
utils Implementing logic, added first test 5 months ago
vars Implementing logic, added first test 5 months ago
.gitignore Implementing logic, added first test 5 months ago
LICENSE Implementing logic, added first test 5 months ago
README.md Implementing logic, added first test 5 months ago
go.mod Implementing logic, added first test 5 months ago
go.sum Implementing logic, added first test 5 months ago
main.go Implementing logic, added first test 5 months ago
main_test.go Implementing logic, added first test 5 months ago

README.md

hstl

Ultimate tool for managing hostlists written in go

Status

ALPHA

Description

Manipulate hostlists:

  • clean from non-url
  • remove/add prefixes like 127.0.0.1
  • remove/add hostlist scheme
  • convert between formats
  • merge lists into one

Motivation

There are dozens of lists in different formats.

Setting up pfblockernng/adguard/pihole with > 10 lists (in my case ~88 is pain) especially if some of recods are broken.

My frined actually solved it by scripting with sed, but I want some more control over it.

Technical details

Used parallel lazy streams (something like java-8 streams / .NET linq)