sock close

This commit is contained in:
Silent YANG 2023-11-29 22:24:49 +08:00
parent 933ac6f044
commit 8d8123c556

1
app.py
View file

@ -23,6 +23,7 @@ def dns_query():
sock.sendto(payload, ("1.1.1.1", 53))
rx_meesage, addr = sock.recvfrom(4096)
return make_response(rx_meesage, 200, {"Content-Type": "application/dns-message"})
sock.close()
return make_response("", 400)
if __name__ == "__main__":