prawnsalad / KiwiIRC

This is **DEPRECATED**! Please go to https://github.com/kiwiirc/kiwiirc
https://kiwiirc.com
GNU Affero General Public License v3.0
890 stars 278 forks source link

DNSBL patch 1 #907

Open LouisT opened 7 years ago

LouisT commented 7 years ago

Add support for multiple DNSBL zones. The new defaults are 'dnsbl.dronebl.org', 'rbl.efnetrbl.org', and 'tor.dnsbl.sectoor.de'. I've added in the option to modify zones via config.js as:

conf.dnsbl = {
    zones: ['dnsbl.dronebl.org', 'rbl.efnetrbl.org', 'tor.dnsbl.sectoor.de', 'socks.dnsbl.sorbs.net']
};

I have chosen to use Promise, which is only supported with Node.js >=v4.x, however LTS for anything under v4.x expires at the end of 2016 so I believe this should be fine.

ShadowNinja commented 7 years ago

Note that this seems to be IPv4-only.