This commit is contained in:
evilsocket 2018-02-11 01:07:25 +01:00
commit 2572aa2c76

View file

@ -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