Set onion and i2p domain

main
Bob Mottram 2022-01-04 22:05:04 +00:00
parent e6c64a5504
commit b94336fb40
1 changed files with 4 additions and 0 deletions

View File

@ -18787,6 +18787,10 @@ def run_daemon(content_license_url: str,
httpd.domainBlocklist = get_domain_blocklist(base_dir)
httpd.manual_follower_approval = manual_follower_approval
if domain.endswith('.onion'):
onion_domain = domain
elif domain.endswith('.i2p'):
i2p_domain = domain
httpd.onion_domain = onion_domain
httpd.i2p_domain = i2p_domain
httpd.media_instance = media_instance