firewall: service name can contain digits too

This commit is contained in:
Marek Marczykowski-Górecki 2019-08-10 03:54:35 +02:00
parent dedde71d7a
commit 3c9d7d3da4
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -146,7 +146,7 @@ class QubesFirewallRulesModel(QtCore.QAbstractItemModel):
self.__services = list()
self.port_range_pattern = re.compile(r'\d+-\d+')
self.service_port_pattern = re.compile(r'(\d*) \([a-zA-Z-]*\)')
self.service_port_pattern = re.compile(r'(\d*) \([a-zA-Z0-9-]*\)')
pattern = re.compile(
r"(?P<name>[a-z][a-z0-9-]+)\s+(?P<port>[0-9]+)/"