summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshihaoyue <[email protected]>2024-09-22 12:42:21 +0800
committershihaoyue <[email protected]>2024-09-22 12:42:21 +0800
commitd5a8e188c7ca3a4fb9916152d5e360221b2b57b6 (patch)
tree3c18622bf68670ea4152e4b51fb8a96f3c4e6c5a
parent8f78fcd148a6f55a7ebb0501606cafe7a75df0c6 (diff)
修复目标错误
-rw-r--r--server/apps/target.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/apps/target.py b/server/apps/target.py
index ffd00f2..354da9c 100644
--- a/server/apps/target.py
+++ b/server/apps/target.py
@@ -738,7 +738,7 @@ def target_GZ(IP_addr):
isp = data.get('org'),
lat = float(data.get('loc').split(',')[0]),
lng = float(data.get('loc').split(',')[1]),
- protect = protect.text,
+ protect = json.loads(protect.text),
doh_domain = None
)
db.session.add(target)