node:net blocklist upgrade
What is the problem this feature will solve?
the save of the blocklist into the disk to not have do reblock manualy
What is the feature you are proposing to solve the problem?
a parameter in the class named file who is the storage off the rules
What alternatives have you considered?
manualy create a loader
tag net
what does it mean to store in disk, if you write it's already stored in memory, as far as i know, Im newbie
Store in file to has persistent blacklist
Hey I'm working on, it
Any update
Statut
Hey, Im working on it
Maybe i can hΓ©la
Help
If y can get the code
Hey its done, but somehow its not building
@arup-basak ...do you have a working branch uploaded to github yet? I'm happy to take a look later this week .
@arup-basak ...do you have a working branch uploaded to github yet? I'm happy to take a look later this week . I just have added file handling https://github.com/arup-basak/node
I make some test
@arup-basak ...do you have a working branch uploaded to github yet? I'm happy to take a look later this week .
Hey, should I continue
yes i have fork your fork
found the error const n=require("net") const ban =new n.BlockList("./test.json") ban.addAddress("192.168.0.1") ban.saveToFile("./test.json") console.log(ban) with this simple test bloclklist.getRules() dont exist
And the build work
@arup-basak
@jasnell can You integrate my change
You just need to copy paste no need for meet
@jasnell my version work
And the repo of @arup-basak is Good to
@jasnell