tox_wrapper
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user