URI: 
       tannounce both to self and a remote directory - tordam - A library for peer discovery inside the Tor network
  HTML git clone https://git.parazyd.org/tordam
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 0a02356b0e985942f3eb5183cb055abd95e57890
   DIR parent c396185f14093cd5800e58419edad4b4109ff532
  HTML Author: parazyd <parazyd@dyne.org>
       Date:   Sat, 25 Nov 2017 13:38:44 +0100
       
       announce both to self and a remote directory
       
       Diffstat:
         M damn.py                             |      20 +++++++++++++-------
       
       1 file changed, 13 insertions(+), 7 deletions(-)
       ---
   DIR diff --git a/damn.py b/damn.py
       t@@ -1,7 +1,7 @@
        #!/usr/bin/env python3
        # See LICENSE file for copyright and license details.
        
       -from os.path import isfile
       +from os.path import isfile, join
        from getpass import getpass
        from stem.control import Controller
        import simplejson as json
       t@@ -69,12 +69,18 @@ def main():
                'message': message,
                'signature': sign,
            }]
       -    # resp = requests.post('http://qzhpi3jsbuvndnaw.onion/post',
       -    resp = requests.post('http://localhost:49371/post',
       -                         data=json.dumps(payload),
       -                         headers={'Content-Type': 'application/json'},
       -                         # proxies={'http': 'socks5://127.0.0.1:9050'}
       -                        )
       +
       +    directories = [
       +        'http://localhost:49371',
       +        'http://qzhpi3jsbuvndnaw.onion',
       +    ]
       +
       +    for i in directories:
       +        if i.endswith('.onion'):
       +            prx = {'http': 'socks5h://127.0.0.1:9050'}
       +        resp = requests.post(join(i, 'post'), data=json.dumps(payload),
       +                             headers={'Content-Type': 'application/json'},
       +                             proxies=prx)
        
            input('Press Enter to exit.')
            return