Skip to content
Snippets Groups Projects
Verified Commit 37e5c1d4 authored by Torsten Grote's avatar Torsten Grote
Browse files

Expose getObfs4ExecutableFile()

parent 3ca8138a
No related branches found
No related tags found
1 merge request!4Implement various tickets
Pipeline #14448 passed
......@@ -133,7 +133,7 @@ public class AndroidTorWrapper extends AbstractTorWrapper {
}
@Override
protected File getObfs4ExecutableFile() {
public File getObfs4ExecutableFile() {
return obfs4Lib.exists() ? obfs4Lib : super.getObfs4ExecutableFile();
}
......
......@@ -107,7 +107,8 @@ abstract class AbstractTorWrapper implements EventHandler, TorWrapper {
return new File(torDirectory, "tor");
}
protected File getObfs4ExecutableFile() {
@Override
public File getObfs4ExecutableFile() {
return new File(torDirectory, "obfs4proxy");
}
......
......@@ -2,6 +2,7 @@ package org.briarproject.onionwrapper;
import org.briarproject.nullsafety.NotNullByDefault;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.logging.Logger;
......@@ -99,6 +100,11 @@ public interface TorWrapper {
*/
void enableIpv6(boolean ipv6Only) throws IOException;
/**
* Returns the Obfs4 executable as a File for use with Moat.
*/
File getObfs4ExecutableFile();
/**
* The state of the Tor wrapper.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment