Ticket #20584: 0004-Remove-one-mention-of-a-hidden-service-directory.patch

File 0004-Remove-one-mention-of-a-hidden-service-directory.patch, 1.1 KB (added by cypherpunks, 3 years ago)
  • docs/_static/example/ephemeral_hidden_services.py

    From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
    From: cypherpunks <cypherpunks@torproject.org>
    Date: Sun, 6 Nov 2016 13:38:24 +0000
    Subject: [PATCH 4/4] Remove one mention of a hidden service directory
    
    Ephemeral hidden services do not touch disk so there is no hidden
    service directory to display.
    ---
     docs/_static/example/ephemeral_hidden_services.py | 1 -
     1 file changed, 1 deletion(-)
    
    diff --git a/docs/_static/example/ephemeral_hidden_services.py b/docs/_static/example/ephemeral_hidden_services.py
    index 85d36fa..8ca3ab6 100644
    a b with Controller.from_port() as controller: 
    1717  # Create a hidden service where visitors of port 80 get redirected to local
    1818  # port 5000 (this is where Flask runs by default).
    1919
    20   print(" * Creating our hidden service in %s" % hidden_service_dir)
    2120  response = controller.create_ephemeral_hidden_service({80: 5000}, await_publication = True)
    2221  print(" * Our service is available at %s.onion, press ctrl+c to quit" % response.service_id)
    2322