aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/FirewallCompiler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext/FirewallCompiler.cs')
-rw-r--r--src/wixext/FirewallCompiler.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wixext/FirewallCompiler.cs b/src/wixext/FirewallCompiler.cs
index 1fa80f48..900af7aa 100644
--- a/src/wixext/FirewallCompiler.cs
+++ b/src/wixext/FirewallCompiler.cs
@@ -81,6 +81,7 @@ namespace WixToolset.Firewall
81 string scope = null; 81 string scope = null;
82 string remoteAddresses = null; 82 string remoteAddresses = null;
83 string description = null; 83 string description = null;
84 int? direction = null;
84 85
85 foreach (var attrib in element.Attributes()) 86 foreach (var attrib in element.Attributes())
86 { 87 {
@@ -177,6 +178,11 @@ namespace WixToolset.Firewall
177 case "Description": 178 case "Description":
178 description = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); 179 description = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib);
179 break; 180 break;
181 case "Outbound":
182 direction = this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib) == YesNoType.Yes
183 ? FirewallConstants.NET_FW_RULE_DIR_OUT
184 : FirewallConstants.NET_FW_RULE_DIR_IN;
185 break;
180 default: 186 default:
181 this.ParseHelper.UnexpectedAttribute(element, attrib); 187 this.ParseHelper.UnexpectedAttribute(element, attrib);
182 break; 188 break;
@@ -260,6 +266,7 @@ namespace WixToolset.Firewall
260 Profile = profile ?? FirewallConstants.NET_FW_PROFILE2_ALL, 266 Profile = profile ?? FirewallConstants.NET_FW_PROFILE2_ALL,
261 ComponentRef = componentId, 267 ComponentRef = componentId,
262 Description = description, 268 Description = description,
269 Direction = direction ?? FirewallConstants.NET_FW_RULE_DIR_IN,
263 }); 270 });
264 271
265 if (!String.IsNullOrEmpty(port)) 272 if (!String.IsNullOrEmpty(port))