mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -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
|
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 fmt.Errorf("Unexpected netsh output: %s", out)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue