mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
修改解析内容处理
This commit is contained in:
@@ -55,7 +55,7 @@ def convert_results(result_list):
|
||||
hostname, answer = result
|
||||
value_dict = {'ips': None, 'reason': None, 'valid': None}
|
||||
if isinstance(answer, tuple):
|
||||
value_dict['ips'] = str(answer[2])[1:-1]
|
||||
value_dict['ips'] = ','.join(answer[2])
|
||||
result_dict[hostname] = value_dict
|
||||
elif isinstance(answer, Exception):
|
||||
value_dict['reason'] = str(answer.args)
|
||||
|
||||
Reference in New Issue
Block a user