Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fixed connect port in client tgen graphml file
fixes #29
  • Loading branch information
robgjansen committed Apr 8, 2017
1 parent e2d552b commit 803650bb2cc3f8dec720ab39983a618848f76556
Showing with 2 additions and 1 deletion.
  1. +2 −1 onionperf/measurement.py
@@ -220,7 +220,8 @@ def run(self, do_onion=True, do_inet=True, client_tgen_listen_port=58888, client
general_writables.append(tor_writable)

server_urls = []
if do_onion and self.hs_service_id is not None: server_urls.append("{0}.onion:{1}".format(self.hs_service_id, server_tgen_listen_port))
if do_onion and self.hs_service_id is not None:
server_urls.append("{0}.onion:{1}".format(self.hs_service_id, client_tgen_connect_port))
if do_inet:
connect_ip = client_tgen_connect_ip if client_tgen_connect_ip != '0.0.0.0' else util.get_ip_address()
server_urls.append("{0}:{1}".format(connect_ip, client_tgen_connect_port))

0 comments on commit 803650b

Please sign in to comment.