tordam

A library for peer discovery inside the Tor network
git clone https://git.parazyd.org/tordam
Log | Files | Refs | README | LICENSE

commit 2b43a7b2ad6b6652dd63df16dc33816fa02ca617
parent e7b4b62f999ccb7afe5cc64a2eeb1ac3968f459f
Author: parazyd <parazyd@dyne.org>
Date:   Wed, 13 Dec 2017 03:15:40 +0100

damhs.py: Don't spam stdout when looping.

Diffstat:
Mpython/damhs.py | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/python/damhs.py b/python/damhs.py @@ -46,11 +46,10 @@ def main(): service = start_hs(ctl=ctl, ktype=ktype, kcont=kcont, portmap=portmap) stdout.write('Started HS at %s.onion\n' % service.service_id) + stdout.write('OK\n') stdout.flush() while True: - stdout.write('OK\n') - stdout.flush() - sleep(10) + sleep(60) if __name__ == '__main__':