Merge branch 'fixiptables' of https://github.com/Unpublished/orbot into Unpublished-fixiptables
This commit is contained in:
commit
970710d03c
|
@ -103,28 +103,21 @@ public class TorTransProxy implements TorServiceConstants {
|
||||||
|
|
||||||
private String findSystemIPTables ()
|
private String findSystemIPTables ()
|
||||||
{
|
{
|
||||||
if (mSysIptables != null)
|
|
||||||
{
|
//if the user wants us to use the built-in iptables, then we have to find it
|
||||||
return mSysIptables;
|
File fileIpt = new File("/system/xbin/iptables");
|
||||||
}
|
|
||||||
|
if (fileIpt.exists())
|
||||||
|
mSysIptables = fileIpt.getAbsolutePath();
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
//if the user wants us to use the built-in iptables, then we have to find it
|
fileIpt = new File("/system/bin/iptables");
|
||||||
File fileIpt = new File("/system/xbin/iptables");
|
|
||||||
|
|
||||||
if (fileIpt.exists())
|
if (fileIpt.exists())
|
||||||
mSysIptables = fileIpt.getAbsolutePath();
|
mSysIptables = fileIpt.getAbsolutePath();
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
fileIpt = new File("/system/bin/iptables");
|
|
||||||
|
|
||||||
if (fileIpt.exists())
|
|
||||||
mSysIptables = fileIpt.getAbsolutePath();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return mSysIptables;
|
return mSysIptables;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue