Validate domain

main
bashrc 2026-02-23 14:25:09 +00:00
parent 3fcf7e702c
commit 900a0fe638
1 changed files with 3 additions and 2 deletions

View File

@ -676,8 +676,9 @@ def run_daemon(accounts_data_dir: str,
domain = 'localhost'
if '.' not in domain:
if domain != 'localhost':
print('Invalid domain: ' + domain)
return
if not is_yggdrasil_address(domain):
print('Invalid domain: ' + domain)
return
update_moved_actors(base_dir, debug)