fix usage of system iptables
This commit is contained in:
parent
40233543d3
commit
639bc3241e
|
@ -80,28 +80,21 @@ public class TorTransProxy implements TorServiceConstants {
|
|||
|
||||
private String findSystemIPTables ()
|
||||
{
|
||||
if (mSysIptables != null)
|
||||
{
|
||||
return mSysIptables;
|
||||
}
|
||||
|
||||
//if the user wants us to use the built-in iptables, then we have to find it
|
||||
File fileIpt = new File("/system/xbin/iptables");
|
||||
|
||||
if (fileIpt.exists())
|
||||
mSysIptables = fileIpt.getAbsolutePath();
|
||||
else
|
||||
{
|
||||
|
||||
//if the user wants us to use the built-in iptables, then we have to find it
|
||||
File fileIpt = new File("/system/xbin/iptables");
|
||||
|
||||
|
||||
fileIpt = new File("/system/bin/iptables");
|
||||
|
||||
if (fileIpt.exists())
|
||||
mSysIptables = fileIpt.getAbsolutePath();
|
||||
else
|
||||
{
|
||||
|
||||
fileIpt = new File("/system/bin/iptables");
|
||||
|
||||
if (fileIpt.exists())
|
||||
mSysIptables = fileIpt.getAbsolutePath();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return mSysIptables;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue