funkolab / cs-mikrotik-bouncer

A CrowdSec bouncer for MikroTik RouterOS appliance
Apache License 2.0
39 stars 7 forks source link

update main to use errgroup with go-cs-bouncer 0.0.3 #29

Closed mmetc closed 1 year ago

mmetc commented 1 year ago

Hi!

new versions of go-cs-bouncer use a context object to manage concurrency, here is an update to do that like on the other official bouncers

I have not tested it, just ported the changes.

For the dependencies, at the moment I recommend sticking to crowdsec 1.4.6, not 1.5.1 - and go-cs-bouncer 0.0.3, not 0.0.4. Otherwise it works but the resulting binary has a couple megabytes of unnecessary dependencies.

tuxtof commented 1 year ago

PR via #31