fix: win32 fw fix

This commit is contained in:
evilsocket 2018-02-11 01:06:16 +01:00
commit ef6fa7bbea

View file

@ -113,7 +113,7 @@ func (f *WindowsFirewall) EnableRedirection(r *Redirection, enabled bool) error
return err
}
if core.Trim(out) != "" {
if strings.Contains(out, "OK") == false {
return fmt.Errorf("Unexpected netsh output: %s", out)
}
return nil