misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-02-20 04:05:38 +01:00
commit 8025410f77

View file

@ -165,11 +165,7 @@ func (f PfFirewall) EnableRedirection(r *Redirection, enabled bool) error {
}
func (f PfFirewall) Restore() {
err := f.EnableForwarding(f.forwarding)
if err != nil {
fmt.Fprintf(os.Stderr, "%s", err)
}
f.EnableForwarding(f.forwarding)
f.enable(false)
os.Remove(f.filename)
}