Skip to content

Commit

Permalink
pptp: Don't set additional VPN network properties
Browse files Browse the repository at this point in the history
Don't set additional properties for 'Address', 'Netmask' and 'DNS'
as the values are handled with the IPv4 property.
  • Loading branch information
pfl committed Aug 7, 2013
1 parent c871ca6 commit c96f0cc
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions vpn/plugins/pptp.c
Expand Up @@ -157,20 +157,14 @@ static int pptp_notify(DBusMessage *msg, struct vpn_provider *provider)

DBG("%s = %s", key, value);

if (!strcmp(key, "INTERNAL_IP4_ADDRESS")) {
vpn_provider_set_string(provider, "Address", value);
if (!strcmp(key, "INTERNAL_IP4_ADDRESS"))
addressv4 = g_strdup(value);
}

if (!strcmp(key, "INTERNAL_IP4_NETMASK")) {
vpn_provider_set_string(provider, "Netmask", value);
if (!strcmp(key, "INTERNAL_IP4_NETMASK"))
netmask = g_strdup(value);
}

if (!strcmp(key, "INTERNAL_IP4_DNS")) {
vpn_provider_set_string(provider, "DNS", value);
if (!strcmp(key, "INTERNAL_IP4_DNS"))
nameservers = g_strdup(value);
}

if (!strcmp(key, "INTERNAL_IFNAME"))
ifname = g_strdup(value);
Expand Down

0 comments on commit c96f0cc

Please sign in to comment.