Onionr/onionr/utils/gettransports.py
2019-07-20 01:02:30 -05:00

14 lines
427 B
Python

import filepaths
files = [filepaths.tor_hs_address_file]
def get():
transports = []
for file in files:
try:
with open(file, 'r') as transport_file:
transports.append(transport_file.read())
except FileNotFoundError:
transports.append('')
pass
return list(transports)