Onionr/onionr/utils/gettransports.py

14 lines
427 B
Python
Raw Normal View History

2019-07-18 17:40:48 +00:00
import filepaths
files = [filepaths.tor_hs_address_file]
2019-07-20 06:02:30 +00:00
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)