mirror of
https://github.com/sileht/bird-lg.git
synced 2024-11-22 15:04:41 +01:00
Reduce wait time for traceroute
This commit is contained in:
parent
4b7831fa7c
commit
3776c8bf34
|
@ -25,7 +25,7 @@ def traceroute():
|
||||||
query = request.args.get("q","")
|
query = request.args.get("q","")
|
||||||
query = unquote(query)
|
query = unquote(query)
|
||||||
|
|
||||||
command = [ 'traceroute', o, '-A', '-q1', '-w2', query]
|
command = [ 'traceroute', o, '-A', '-q1', '-w1', query]
|
||||||
result = subprocess.Popen( command , stdout=subprocess.PIPE).communicate()[0].decode('utf-8', 'ignore').replace("\n","<br>")
|
result = subprocess.Popen( command , stdout=subprocess.PIPE).communicate()[0].decode('utf-8', 'ignore').replace("\n","<br>")
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Reference in a new issue