Skip to content

Commit 9d2a553

Browse files
committed
Match using startswith and not in to reduce potential false positives
1 parent 19b14fe commit 9d2a553

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/opensnitch/dialogs/prompt/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def set_default_target(combo, con, cfg, app_name, app_args):
244244
return
245245
# entire command as default target for "dangerous" commands
246246
# (e.g. curl, wget, node)
247-
elif any(bin in connection_path.name for bin in constants.FULL_COMMAND_BIN):
247+
elif any(connection_path.name.startswith(bin) for bin in constants.FULL_COMMAND_BIN):
248248
combo.setCurrentIndex(1)
249249
return
250250

0 commit comments

Comments
 (0)