feat: Add tx count plugin and fixed dns error

This commit is contained in:
2024-04-08 11:44:50 +10:00
parent 40b4c42492
commit 45fdaa2de4
3 changed files with 41 additions and 3 deletions

View File

@@ -305,6 +305,12 @@ def getDNS(domain: str):
return {
"error": response['error']['message']
}
if 'result' not in response:
return {
"error": "No DNS records"
}
if 'records' not in response['result']:
return []
return response['result']['records']