mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
fix: win32 fw fix
This commit is contained in:
parent
1ec925fd40
commit
ef6fa7bbea
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ func (f *WindowsFirewall) EnableRedirection(r *Redirection, enabled bool) error
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if core.Trim(out) != "" {
|
if strings.Contains(out, "OK") == false {
|
||||||
return fmt.Errorf("Unexpected netsh output: %s", out)
|
return fmt.Errorf("Unexpected netsh output: %s", out)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue