tor can now be attached
This commit is contained in:
parent
ea47ae456b
commit
cd671feb92
2 changed files with 11 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue