mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
Prefer domains over IPs as default option to block/allow
This commit is contained in:
parent
b2cc0eb164
commit
911593e55a
1 changed files with 2 additions and 1 deletions
|
@ -201,7 +201,6 @@ class PromptDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
|
|||
self._what_combo.addItem("from user %s" % uid, "user_id")
|
||||
self._what_combo.addItem("to port %d" % con.dst_port, "dst_port")
|
||||
self._what_combo.addItem("to %s" % con.dst_ip, "dst_ip")
|
||||
self._what_dstip_combo.addItem("to %s" % con.dst_ip, "dst_ip")
|
||||
|
||||
if con.dst_host != "" and con.dst_host != con.dst_ip:
|
||||
self._what_combo.addItem("to %s" % con.dst_host, "simple_host")
|
||||
|
@ -213,6 +212,8 @@ class PromptDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
|
|||
self._what_combo.addItem("to *.%s" % '.'.join(parts[i:]), "regex_host")
|
||||
self._what_dstip_combo.addItem("to *.%s" % '.'.join(parts[i:]), "regex_host")
|
||||
|
||||
self._what_dstip_combo.addItem("to %s" % con.dst_ip, "dst_ip")
|
||||
|
||||
parts = con.dst_ip.split('.')
|
||||
nparts = len(parts)
|
||||
for i in range(1, nparts):
|
||||
|
|
Loading…
Add table
Reference in a new issue