From 7d4c7cca4f21a647df4b168eee22bcec27f39a27 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Sat, 10 Feb 2018 02:34:18 +0100 Subject: [PATCH] balls --- firewall/firewall_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firewall/firewall_windows.go b/firewall/firewall_windows.go index 8d2e1362..d913ab31 100644 --- a/firewall/firewall_windows.go +++ b/firewall/firewall_windows.go @@ -77,9 +77,9 @@ func (f *WindowsFirewall) AllowPort(port int, address string, proto string, allo cmd := []string{"advfirewall"} if allow { - cmd = append(cmd, []string{"add", "rule", nameField, protoField, "dir=in", ipField, portField, "action=allow"}) + cmd = append(cmd, []string{"add", "rule", nameField, protoField, "dir=in", ipField, portField, "action=allow"}...) } else { - cmd = append(cmd, []string{"del", "rule", nameField}) + cmd = append(cmd, []string{"del", "rule", nameField}...) } out, err := core.Exec("netsh", cmd)