diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-05-05 19:54:55 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-05-05 19:54:55 +0200 |
commit | 581062c8b9629a5d52b555d13b573b12394fafda (patch) | |
tree | 64908b1dcbf6c1515d73cbd4302faf0c6eb18572 /src/de/blinkt/openvpn/OpenVPN.java | |
parent | dba28ea4eacf852a245fc36fb5171d7702f78cc1 (diff) |
working protect fd through management
Diffstat (limited to 'src/de/blinkt/openvpn/OpenVPN.java')
-rw-r--r-- | src/de/blinkt/openvpn/OpenVPN.java | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/de/blinkt/openvpn/OpenVPN.java b/src/de/blinkt/openvpn/OpenVPN.java index 3e660bce..8dad6af9 100644 --- a/src/de/blinkt/openvpn/OpenVPN.java +++ b/src/de/blinkt/openvpn/OpenVPN.java @@ -88,17 +88,7 @@ public class OpenVPN { public static void setCallback(OpenVpnService openVpnService) { mOpenVpnService = openVpnService; } - - public static boolean protectSocket (int sockfd) - { - boolean p = mOpenVpnService.protect(sockfd); - if(p) - Log.d("openvpn","Protected socket "+ sockfd); - else - Log.e("openvpn","Error protecting socket "+ sockfd); - return p; - } - + public static int openTunDevice() { Log.d(TAG,"Opening tun device"); return mOpenVpnService.openTun(); |