Save the onion or i2p version of the domain qrcode if available, because it's more useful

main
Bob Mottram 2022-03-22 10:20:00 +00:00
parent a4a5ad7b32
commit 9f3231e5dd
1 changed files with 6 additions and 1 deletions

View File

@ -20633,7 +20633,12 @@ def run_daemon(crawlers_allowed: [],
httpd.domain = domain
httpd.port = port
httpd.domain_full = get_full_domain(domain, port)
save_domain_qrcode(base_dir, http_prefix, httpd.domain_full)
if onion_domain:
save_domain_qrcode(base_dir, 'http', onion_domain)
elif i2p_domain:
save_domain_qrcode(base_dir, 'http', i2p_domain)
else:
save_domain_qrcode(base_dir, http_prefix, httpd.domain_full)
httpd.http_prefix = http_prefix
httpd.debug = debug
httpd.federation_list = fed_list.copy()