Open mjholub opened 1 year ago
there're a couple of errors here: https://github.com/evilsocket/opensnitch/blob/bd8e6ffae9b0cf168308f09a99382f72cc314fe4/daemon/firewall/iptables/rules.go#L23
err4 and err6 are not defined. Something in the line of var err4, err6 error
would solve it.
Also "not enough return values" error here (func expects 2 values: nil, nil): https://github.com/evilsocket/opensnitch/blob/bd8e6ffae9b0cf168308f09a99382f72cc314fe4/daemon/firewall/nftables/system.go#L138
and "common" package is not used error: https://github.com/evilsocket/opensnitch/blob/bd8e6ffae9b0cf168308f09a99382f72cc314fe4/daemon/firewall/nftables/system.go#L6
Seems like I've botched something when bisecting this with my other feature branch. It's my fault and I'll fix this. My apologies.
Any progress here ?
I'll take a look
Fixed. Ran the tests locally, they fail in the UI package, not sure why as I haven't touched it and they only print the cgo warninigs about deprecated dependencies
This allows a little bit of more flexibility since now there is only one return value instead of two. The underlying logic stays the same. Also unrelated, but I've noticed that you're not tracking go.sum. This isn't a good practice.