mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 00:24:40 +01:00
Merge pull request #254 from p-/issue-252
UI: improve regex for domain matching
This commit is contained in:
commit
55e32209e7
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ class PromptDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
|
|||
else:
|
||||
self._rule.operator.type = "regexp"
|
||||
self._rule.operator.operand = "dest.host"
|
||||
self._rule.operator.data = ".*%s" % '\.'.join(self._con.dst_host.split('.')[what_idx - 4:])
|
||||
self._rule.operator.data = ".*\.%s" % '\.'.join(self._con.dst_host.split('.')[what_idx - 4:])
|
||||
|
||||
self._rule.name = slugify("%s %s %s" % (self._rule.action, self._rule.operator.type, self._rule.operator.data))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue