more fixes for VPN but not quite ready yet
This commit is contained in:
parent
7f50f79b0e
commit
3ef94e009c
|
@ -16,6 +16,7 @@
|
|||
|
||||
package org.torproject.android.vpn;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.InetAddress;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.Locale;
|
||||
|
@ -98,6 +99,14 @@ public class OrbotVpnService extends VpnService implements Handler.Callback {
|
|||
|
||||
if (mProxyServer != null)
|
||||
mProxyServer.stop();
|
||||
|
||||
if (mInterface != null)
|
||||
try {
|
||||
mInterface.close();
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue