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