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,6 +20633,11 @@ def run_daemon(crawlers_allowed: [],
httpd.domain = domain httpd.domain = domain
httpd.port = port httpd.port = port
httpd.domain_full = get_full_domain(domain, port) httpd.domain_full = get_full_domain(domain, port)
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) save_domain_qrcode(base_dir, http_prefix, httpd.domain_full)
httpd.http_prefix = http_prefix httpd.http_prefix = http_prefix
httpd.debug = debug httpd.debug = debug