diff options
Diffstat (limited to 'packages/VpnServices/src/com/android/server/vpn/PptpService.java')
-rw-r--r-- | packages/VpnServices/src/com/android/server/vpn/PptpService.java | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/packages/VpnServices/src/com/android/server/vpn/PptpService.java b/packages/VpnServices/src/com/android/server/vpn/PptpService.java index d903d1b..de12710 100644 --- a/packages/VpnServices/src/com/android/server/vpn/PptpService.java +++ b/packages/VpnServices/src/com/android/server/vpn/PptpService.java @@ -24,19 +24,11 @@ import java.io.IOException; * The service that manages the PPTP VPN connection. */ class PptpService extends VpnService<PptpProfile> { - static final String PPTP_DAEMON = "pptp"; - static final String PPTP_PORT = "1723"; - @Override protected void connect(String serverIp, String username, String password) throws IOException { PptpProfile p = getProfile(); - MtpdHelper.sendCommand(this, PPTP_DAEMON, serverIp, PPTP_PORT, null, - username, password, p.isEncryptionEnabled()); - } - - @Override - protected void stopPreviouslyRunDaemons() { - stopDaemon(MtpdHelper.MTPD); + getDaemons().startPptp(serverIp, username, password, + p.isEncryptionEnabled()); } } |