summaryrefslogtreecommitdiffstats
path: root/packages/VpnServices/src/com/android/server/vpn/L2tpIpsecService.java
diff options
context:
space:
mode:
Diffstat (limited to 'packages/VpnServices/src/com/android/server/vpn/L2tpIpsecService.java')
-rw-r--r--packages/VpnServices/src/com/android/server/vpn/L2tpIpsecService.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/VpnServices/src/com/android/server/vpn/L2tpIpsecService.java b/packages/VpnServices/src/com/android/server/vpn/L2tpIpsecService.java
index 825953c..e2d4ff4 100644
--- a/packages/VpnServices/src/com/android/server/vpn/L2tpIpsecService.java
+++ b/packages/VpnServices/src/com/android/server/vpn/L2tpIpsecService.java
@@ -30,11 +30,9 @@ class L2tpIpsecService extends VpnService<L2tpIpsecProfile> {
@Override
protected void connect(String serverIp, String username, String password)
throws IOException {
- String hostIp = getHostIp();
-
// IPSEC
AndroidServiceProxy ipsecService = startService(IPSEC_DAEMON);
- ipsecService.sendCommand(hostIp, serverIp, L2tpService.L2TP_PORT,
+ ipsecService.sendCommand(serverIp, L2tpService.L2TP_PORT,
getUserkeyPath(), getUserCertPath(), getCaCertPath());
sleep(2000); // 2 seconds