mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
UI: improve regex for domain matching
This commit is contained in:
parent
5c8f7102c2
commit
7d815d9608
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