summaryrefslogtreecommitdiff
path: root/server/apps/target.py
diff options
context:
space:
mode:
authorshihaoyue <[email protected]>2024-09-02 20:14:29 +0800
committershihaoyue <[email protected]>2024-09-02 20:14:29 +0800
commit2f0ef84088e8c496353b52a49d580da1716f3565 (patch)
tree5c211ee46c443d8f268a2a913f119d94e85cfba4 /server/apps/target.py
parent7c135585bec5e54076508e37baa958ba068e6d18 (diff)
update target protect json
Diffstat (limited to 'server/apps/target.py')
-rw-r--r--server/apps/target.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/apps/target.py b/server/apps/target.py
index 97722ac..3290198 100644
--- a/server/apps/target.py
+++ b/server/apps/target.py
@@ -39,7 +39,7 @@ class TargetSchema(Schema):
ipv4 = String()
ipv6 = String()
protocol = List(String())
- protect = List(String())
+ protect = String()
cou = String()
isp = String()
lat = String()
@@ -392,7 +392,7 @@ def target_info(query_data):
target["protocol"] = protocol
# 防护措施特殊处理
- target["protect"] = str(r.protect).split("|")
+ target["protect"] = json.dumps(r.protect)
target_list.append(target)
return {"code": 200, "data": target_list, "total": res_count}