From 9f3231e5dd0a504593fb903721c3eaef0495fdfd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 22 Mar 2022 10:20:00 +0000 Subject: [PATCH] Save the onion or i2p version of the domain qrcode if available, because it's more useful --- daemon.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index a1f0e8296..7586c78c0 100644 --- a/daemon.py +++ b/daemon.py @@ -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()