diff --git a/simulate.py b/simulate.py index f0961315d18913ccc5e5b42b978f571abdc863cb..621c7d2747319a940a354a01f55bd904d9206587 100644 --- a/simulate.py +++ b/simulate.py @@ -167,10 +167,9 @@ def main(): # FIXME: Also need to set process scale to 1.0. See # https://gitlab.torproject.org/jnewsome/sponsor-61-sims/-/issues/5 run(['sed', '-i', 's/UseEntryGuards.*/UseEntryGuards 1/', f"{getenv('SIMDIR')}/conf/tor.client.torrc"]) - # Also enable guards for onionservices, if using a tornettools that supports onionservices. - if os.path.exists(f"{getenv('SIMDIR')}/conf/tor.onionservice.torrc"): - run(['sed', '-i', 's/UseEntryGuards.*/UseEntryGuards 1/', f"{getenv('SIMDIR')}/conf/tor.onionservice.torrc"]) - + with open(f"{getenv('SIMDIR')}/conf/tor.onionservice.torrc", 'a') as torrc: + torrc.write('\n') + torrc.write('VanguardsLiteEnabled 0\n') # Override authority configs with recent consensus params, from # https://consensus-health.torproject.org/#consensusparams: