Fix http diagnosis in IPv6

This commit is contained in:
Alexandre Aubin 2020-04-14 13:44:26 +00:00
parent 6216deb5cc
commit a0521ab4e4

View file

@ -174,6 +174,9 @@ async def check_http(request):
# Run the actual check #
# ############################################# #
if ":" in ip:
ip = "[%s]" % ip
async with aiohttp.ClientSession() as session:
try:
url = "http://" + ip + "/.well-known/ynh-diagnosis/" + nonce