Skip to content

Commit

Permalink
return Error code on DNS Errors for proxy testing
Browse files Browse the repository at this point in the history
  • Loading branch information
boogheta committed Dec 9, 2022
1 parent e525b5e commit 50d97e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hyphe_backend/core.tac
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,7 @@ class Core(customJSONRPC):
res = yield self.lookup_httpstatus(url, timeout=timeout+2, tryout=tryout+1, noproxy=noproxy, deadline=deadline, corpus=corpus, _alternate_proxy=_alternate_proxy)
returnD(res)
elif type(e) == DNSLookupError:
res['result'] = -1
res['message'] = "DNS not found for url %s : %s" % (url, e)
else:
res['result'] = -1
Expand Down

0 comments on commit 50d97e8

Please sign in to comment.