From 5daca2becae397629a116a79b9ff39c897c603b1 Mon Sep 17 00:00:00 2001
From: Pablo Cantera
Date: Mon, 5 Feb 2018 16:36:35 +0100
Subject: [PATCH] Deactivate windows firewall on instance booting
Closes #19
---
firewall/firewall.go | 2 ++
1 file changed, 2 insertions(+)
diff --git a/firewall/firewall.go b/firewall/firewall.go
index 5d2d4ca..4d7d170 100644
--- a/firewall/firewall.go
+++ b/firewall/firewall.go
@@ -85,6 +85,8 @@ func cmdApply(c *cli.Context) error {
// Only apply firewall if we get a non-empty set of rules
if len(policy.Rules) > 0 {
apply(policy)
+ } else {
+ flush()
}
return nil
}