use new bundled xtables binary appropriately
This commit is contained in:
parent
ca28aded12
commit
e9396b7cc2
|
@ -87,5 +87,10 @@ public interface TorServiceConstants {
|
|||
public static final String OBFSPROXY_ASSET_KEY = "libobfsproxy.so";
|
||||
|
||||
public static final int MESSAGE_TRAFFIC_COUNT = 5;
|
||||
|
||||
|
||||
//name of the iptables binary
|
||||
public final static String IPTABLES_BINARY_ASSET_KEY = "libxtables.so";
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -42,8 +42,9 @@ public class TorTransProxy implements TorServiceConstants {
|
|||
else
|
||||
{
|
||||
//use the bundled version
|
||||
|
||||
ipTablesPath = new File(context.getDir("bin", 0),"iptables").getAbsolutePath();
|
||||
File appLibsHome = new File(context.getApplicationInfo().nativeLibraryDir);
|
||||
ipTablesPath = new File(appLibsHome,IPTABLES_BINARY_ASSET_KEY).getAbsolutePath();
|
||||
ipTablesPath += " iptables"; //append subcommand since we are using xtables now
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue