Merge pull request #11 from Druco/hotfix/ip6_crash
Fix crash if IP6 address is specified.master networkmanager-wireguard-0.0.2
commit
f2689562b6
|
@ -423,7 +423,7 @@ set_config(NMVpnServicePlugin *plugin, NMConnection *connection)
|
||||||
if(setting){
|
if(setting){
|
||||||
val = ip6_to_gvariant(setting);
|
val = ip6_to_gvariant(setting);
|
||||||
if(val){
|
if(val){
|
||||||
g_variant_builder_add(&ip6builder, "{sv}", NM_VPN_PLUGIN_IP6_CONFIG_ADDRESS, setting);
|
g_variant_builder_add(&ip6builder, "{sv}", NM_VPN_PLUGIN_IP6_CONFIG_ADDRESS, val);
|
||||||
has_ip6 = TRUE;
|
has_ip6 = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue