This repository was archived by the owner on Dec 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
java/src/main/java/com/msopentech/thali/java/toronionproxy Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 39
39
40
40
</pre>
41
41
*/
42
- public final class JavaTorInstaller extends TorInstaller {
42
+ public class JavaTorInstaller extends TorInstaller {
43
43
44
44
private static final Logger LOG = LoggerFactory .getLogger (JavaTorInstaller .class );
45
45
@@ -77,12 +77,14 @@ public void setup() throws IOException {
77
77
LOG .info ("Installing resources: geoip=" + config .getGeoIpFile ().getAbsolutePath ());
78
78
cleanInstallOneFile (getAssetOrResourceByName (TorConfig .GEO_IP_NAME ), config .getGeoIpFile ());
79
79
cleanInstallOneFile (getAssetOrResourceByName (TorConfig .GEO_IPV_6_NAME ), config .getGeoIpv6File ());
80
+ setupTorExecutable ();
81
+ }
80
82
83
+ protected void setupTorExecutable () throws IOException {
81
84
LOG .info ("Installing tor executable: " + config .getTorExecutableFile ().getAbsolutePath ());
82
85
File torParent = config .getTorExecutableFile ().getParentFile ();
83
86
extractContentFromZip (torParent .exists () ? torParent : config .getTorExecutableFile (),
84
87
getAssetOrResourceByName (getPathToTorExecutable () + "tor.zip" ));
85
-
86
88
setPerms (config .getTorExecutableFile ());
87
89
}
88
90
You can’t perform that action at this time.
0 commit comments