From a89da34d3ae48586c777bb7bfadbbfa71dc79b91 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Sat, 10 Feb 2018 02:57:10 +0100 Subject: [PATCH] balls --- firewall/firewall_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firewall/firewall_windows.go b/firewall/firewall_windows.go index 0c2990d4..1acf0cd9 100644 --- a/firewall/firewall_windows.go +++ b/firewall/firewall_windows.go @@ -87,7 +87,7 @@ func (f *WindowsFirewall) AllowPort(port int, address string, proto string, allo return err } - if core.Trim(out) != "" { + if core.Trim(out) != "OK." { return fmt.Errorf("Unexpected netsh output: %s", out) }