core: fix constructing the IP4Config.Nameservers property

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1563

Fixes: c68e148b02 ('core: extend NML3ConfigData:nameserver to track DNS as string')
This commit is contained in:
Haochen Tong 2023-03-09 02:00:17 +08:00 committed by Thomas Haller
parent d960ef823d
commit c22703b68d
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -368,7 +368,7 @@ get_property_ip4(GObject *object, guint prop_id, GValue *value, GParamSpec *pspe
continue;
if (prop_id == PROP_IP4_NAMESERVERS)
g_variant_builder_add(&builder, "u", &a);
g_variant_builder_add(&builder, "u", a);
else {
GVariantBuilder nested_builder;