Merge pull request #1060 from WGDashboard/fix_domainnx_error_logoout

fix: domainnx error logoout
pull/1125/head^2
Donald Zou 2026-01-05 06:35:27 +08:00 committed by GitHub
commit 64506c9088
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 4 deletions

View File

@ -1342,12 +1342,17 @@ def API_traceroute_execute():
data=json.dumps([x['ip'] for x in result]))
d = r.json()
for i in range(len(result)):
result[i]['geo'] = d[i]
result[i]['geo'] = d[i]
return ResponseObject(data=result)
except Exception as e:
app.logger.error(f"Failed to gather the geolocation data: {e}")
return ResponseObject(data=result, message="Failed to request IP address geolocation")
return ResponseObject(data=result)
except Exception as exp:
return ResponseObject(False, exp)
except Exception as e:
app.logger.error(f"Failed to execute the traceroute: {e}")
return ResponseObject(data=[], message="Failed to traceroute the given parameter")
else:
return ResponseObject(False, "Please provide ipAddress")