mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
8ee4cad421
commit
8025410f77
1 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue