set socket timeout
This commit is contained in:
parent
8d8123c556
commit
290cacd899
1 changed files with 1 additions and 0 deletions
1
app.py
1
app.py
|
@ -10,6 +10,7 @@ from base64 import urlsafe_b64decode
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
socket.setdefaulttimeout(5)
|
||||||
|
|
||||||
@app.route("/dns-query" ,methods=['GET', 'POST'])
|
@app.route("/dns-query" ,methods=['GET', 'POST'])
|
||||||
def dns_query():
|
def dns_query():
|
||||||
|
|
Loading…
Reference in a new issue