tox_wrapper

This commit is contained in:
2024-02-13 18:21:08 +00:00
parent 510e790155
commit 8bf481e6fc
11 changed files with 1501 additions and 4 deletions

View File

@@ -939,16 +939,19 @@ def lNodesCheckNodes(json_nodes, oArgs, bClean=False):
# fixme look for /etc/tor/torrc but it may not be readable
if bHAVE_TOR and os.path.exists('/etc/tor/torrc'):
# get from torrc
address_range = '172.16.1' # 127.192.0
# print(sBLURB)
LOG.info("Add this section to your /etc/tor/torrc")
for line in lONION_CONFIG['vadr']:
print(line)
if lOnions:
LOG.info("Add this section to your /etc/tor/torrc")
print('VirtualAddrNetwork {address_range}.0/10')
i = 1
for line in lOnions:
hosts = line.split(':')
print(f"MapAddress {hosts[0]} 172.16.1.{i}")
print(f"MapAddress {hosts[0]} {address_range}.{i}")
i += 1
if bClean: