From b5bcfa6d3a39e9a2f35c823884205fa5fcf24c9d Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Mon, 12 Nov 2012 14:07:49 +0200 Subject: [PATCH] pptp: Remember the connection password --- vpn/plugins/pptp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vpn/plugins/pptp.c b/vpn/plugins/pptp.c index f737c31..6843793 100644 --- a/vpn/plugins/pptp.c +++ b/vpn/plugins/pptp.c @@ -219,6 +219,13 @@ static int pptp_save(struct vpn_provider *provider, GKeyFile *keyfile) pptp_options[i].cm_opt, option); } } + + option = vpn_provider_get_string(provider, "PPTP.Password"); + if (option != NULL) + g_key_file_set_string(keyfile, + vpn_provider_get_save_group(provider), + "PPTP.Password", option); + return 0; } -- 2.7.4