mirror of
https://github.com/YunoHost/check-http.git
synced 2024-09-03 19:56:42 +02:00
Fix http diagnosis in IPv6
This commit is contained in:
parent
6216deb5cc
commit
a0521ab4e4
1 changed files with 3 additions and 0 deletions
|
@ -174,6 +174,9 @@ async def check_http(request):
|
||||||
# Run the actual check #
|
# Run the actual check #
|
||||||
# ############################################# #
|
# ############################################# #
|
||||||
|
|
||||||
|
if ":" in ip:
|
||||||
|
ip = "[%s]" % ip
|
||||||
|
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
try:
|
try:
|
||||||
url = "http://" + ip + "/.well-known/ynh-diagnosis/" + nonce
|
url = "http://" + ip + "/.well-known/ynh-diagnosis/" + nonce
|
||||||
|
|
Loading…
Reference in a new issue