diff options
-rwxr-xr-x | index.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -86,8 +86,13 @@ class new: return False def get_user_information(self): + try: + host = gethostbyaddr(ctx.ip)[0] + except: + host = ctx.ip + return {'ip': ctx.ip, - 'host': gethostbyaddr(ctx.ip)[0], + 'host': host, 'valid': self.validate(ctx.ip)} def GET(self): |