sock close
This commit is contained in:
parent
933ac6f044
commit
8d8123c556
1 changed files with 1 additions and 0 deletions
1
app.py
1
app.py
|
@ -23,6 +23,7 @@ def dns_query():
|
||||||
sock.sendto(payload, ("1.1.1.1", 53))
|
sock.sendto(payload, ("1.1.1.1", 53))
|
||||||
rx_meesage, addr = sock.recvfrom(4096)
|
rx_meesage, addr = sock.recvfrom(4096)
|
||||||
return make_response(rx_meesage, 200, {"Content-Type": "application/dns-message"})
|
return make_response(rx_meesage, 200, {"Content-Type": "application/dns-message"})
|
||||||
|
sock.close()
|
||||||
return make_response("", 400)
|
return make_response("", 400)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in a new issue