make sure tun2socks is loaded properly

This commit is contained in:
Nathan Freitas 2016-11-03 12:18:20 -04:00
parent 460f365b4a
commit f21f14bf5b
2 changed files with 4 additions and 0 deletions

View File

@ -93,6 +93,8 @@ public class OrbotVpnManager implements Handler.Callback {
File fileBinHome = mService.getDir(TorServiceConstants.DIRECTORY_TOR_BINARY, Application.MODE_PRIVATE); File fileBinHome = mService.getDir(TorServiceConstants.DIRECTORY_TOR_BINARY, Application.MODE_PRIVATE);
filePdnsd = new File(fileBinHome,TorServiceConstants.PDNSD_ASSET_KEY); filePdnsd = new File(fileBinHome,TorServiceConstants.PDNSD_ASSET_KEY);
Tun2Socks.init();
} }
//public int onStartCommand(Intent intent, int flags, int startId) { //public int onStartCommand(Intent intent, int flags, int startId) {

View File

@ -57,6 +57,8 @@ public class Tun2Socks
// than one instance due to the use of global state (the lwip // than one instance due to the use of global state (the lwip
// module, etc.) in the native code. // module, etc.) in the native code.
public static void init () {}
public static void Start( public static void Start(
ParcelFileDescriptor vpnInterfaceFileDescriptor, ParcelFileDescriptor vpnInterfaceFileDescriptor,
int vpnInterfaceMTU, int vpnInterfaceMTU,