Make sure the Firewall rule is only added to a single component

This commit is contained in:
Raoul Snyman 2019-04-25 15:27:54 -07:00
parent a88d398587
commit b4bd034d2f
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class WindowsBuilder(Builder):
else:
file_ = E.File(Id=file_id, KeyPath='yes', Source=source)
component = E.Component(file_, Id=component_id, Guid='*')
if 'OpenLP.exe' in source:
if source.endswith('OpenLP.exe'):
description = 'Firewall exception for OpenLP\'s remote interface (UDP)'
program = '[#file_e368869eb54b01e2288a3359b1cf51f8]'
component.append(FxE.FirewallException(Id='OpenLP_TCP', Name='OpenLP',