[enh] ip6.yunohost is now served through HTTPS.

This commit is contained in:
opi 2017-03-22 08:31:47 +01:00
parent d00ed6cacf
commit ce472696f5
2 changed files with 2 additions and 3 deletions

View file

@ -17,7 +17,7 @@ do_pre_regen() {
# retrieve variables
ipv4=$(curl -s -4 https://ip.yunohost.org 2>/dev/null || true)
ynh_validate_ip4 "$ipv4" || ipv4='127.0.0.1'
ipv6=$(curl -s -6 http://ip6.yunohost.org 2>/dev/null || true)
ipv6=$(curl -s -6 https://ip6.yunohost.org 2>/dev/null || true)
ynh_validate_ip6 "$ipv6" || ipv6=''
domain_list=$(sudo yunohost domain list --output-as plain --quiet)

View file

@ -280,8 +280,7 @@ def get_public_ip(protocol=4):
if protocol == 4:
url = 'https://ip.yunohost.org'
elif protocol == 6:
# FIXME: Let's Encrypt does not support IPv6-only hosts yet
url = 'http://ip6.yunohost.org'
url = 'https://ip6.yunohost.org'
else:
raise ValueError("invalid protocol version")
try: