make sure tun2socks is loaded properly
This commit is contained in:
parent
460f365b4a
commit
f21f14bf5b
|
@ -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) {
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue