Changed the filters for hostnames and addresses to be more useful

This commit is contained in:
rain
2023-05-25 00:29:21 -05:00
parent f43dd2a7d8
commit 958a99439e
+2 -2
View File
@@ -21,11 +21,11 @@ def post_home():
hostname = request.form.get("hostname")
if hostname:
targets = targets.where(target.hostname == hostname)
targets = targets.filter(target.hostname.like('%'+hostname+'%'))
address = request.form.get("address")
if address:
targets = targets.where(target.address == address)
targets = targets.filter(target.address.like('%'+address+'%'))
ports = request.form.get("ports")
if ports: