mirror of https://github.com/jumpserver/jumpserver
fix: 修改测试IP地址工具的默认超市时间为 0.5s
parent
acf8b5798b
commit
795d6e01dc
|
@ -369,7 +369,7 @@ def group_by_count(it, count):
|
|||
return [it[i:i+count] for i in range(0, len(it), count)]
|
||||
|
||||
|
||||
def test_ip_connectivity(host, port, timeout=3):
|
||||
def test_ip_connectivity(host, port, timeout=0.5):
|
||||
"""
|
||||
timeout: seconds
|
||||
"""
|
||||
|
@ -388,4 +388,4 @@ def static_or_direct(logo_path):
|
|||
if logo_path.startswith('img/'):
|
||||
return static(logo_path)
|
||||
else:
|
||||
return logo_path
|
||||
return logo_path
|
||||
|
|
Loading…
Reference in New Issue