tor can now be attached

This commit is contained in:
Kevin Froman 2020-01-31 22:14:26 -06:00
parent ea47ae456b
commit cd671feb92
2 changed files with 11 additions and 3 deletions

View file

@ -23,8 +23,8 @@ def create_onion_service(port=80):
controller = get_controller()
hs = controller.create_ephemeral_hidden_service(
{80: port},
key_type='NEW',
key_content='ED25519-V3',
key_type = 'NEW',
key_content = 'ED25519-V3',
await_publication=True,
detached=True)
return (hs.service_id, hs.private_key)