thaliproject / Tor_Onion_Proxy_Library

Provides a JAR and an AAR for embedding the Tor Onion Proxy into a Java or Android Program
Apache License 2.0
175 stars 98 forks source link

Stop double installing #13

Open yaronyg opened 10 years ago

yaronyg commented 10 years ago

Right now the code works such that when a new instance of OnionProxyManager is created it will, upon calling start, force-ably re-install all the geoIP file, torrc file and binary for the Tor OP. That is, it will call installConfig() & installBinary() no matter what. This is really wasteful if the files haven't actually changed. So it would be nice if we could detect that nothing has changed and just use the existing binaries.