set socket timeout

This commit is contained in:
Silent YANG 2023-11-30 05:15:37 +08:00
parent 8d8123c556
commit 290cacd899

1
app.py
View File

@ -10,6 +10,7 @@ from base64 import urlsafe_b64decode
import socket
app = Flask(__name__)
socket.setdefaulttimeout(5)
@app.route("/dns-query" ,methods=['GET', 'POST'])
def dns_query():