This commit is contained in:
Miroslav Stampar
2020-02-17 12:24:23 +01:00
parent c3fe9a0d47
commit e1502e0cea
2 changed files with 3 additions and 3 deletions

View File

@@ -115,8 +115,8 @@ class DNSServer(object):
with self._lock:
for _ in self._requests:
if prefix is None and suffix is None or re.search(b"%s\\..+\\.%s" % (prefix, suffix), _, re.I):
retVal = _
self._requests.remove(_)
retVal = _.decode()
break
return retVal
@@ -165,7 +165,7 @@ if __name__ == "__main__":
if _ is None:
break
else:
print("[i] %s" % _.decode())
print("[i] %s" % _)
time.sleep(1)