diff --git a/src/frontends/gnome/properties/nm-strongswan-dialog.ui b/src/frontends/gnome/properties/nm-strongswan-dialog.ui
index 66b170c0a..b70c2c3b3 100644
--- a/src/frontends/gnome/properties/nm-strongswan-dialog.ui
+++ b/src/frontends/gnome/properties/nm-strongswan-dialog.ui
@@ -728,6 +728,72 @@
False
+
+
+
+ 2
+
+
+
+
+ True
+ False
+ Traffic
+
+
+ 2
+ False
+
+
diff --git a/src/frontends/gnome/properties/nm-strongswan.c b/src/frontends/gnome/properties/nm-strongswan.c
index 804943efc..72dd7dfcd 100644
--- a/src/frontends/gnome/properties/nm-strongswan.c
+++ b/src/frontends/gnome/properties/nm-strongswan.c
@@ -544,6 +544,12 @@ init_plugin_ui (StrongswanPluginUiWidget *self, NMConnection *connection, GError
}
g_signal_connect (G_OBJECT (widget), "changed", G_CALLBACK (settings_changed_cb), self);
+ widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "remote-ts-entry"));
+ value = nm_setting_vpn_get_data_item (settings, "remote-ts");
+ if (value)
+ gtk_editable_set_text (GTK_EDITABLE (widget), value);
+ g_signal_connect (G_OBJECT (widget), "changed", G_CALLBACK (settings_changed_cb), self);
+
return TRUE;
}
@@ -740,6 +746,8 @@ update_connection (NMVpnEditor *iface,
g_free (str);
}
+ save_entry (settings, priv->builder, "remote-ts-entry", "remote-ts");
+
nm_connection_add_setting (connection, NM_SETTING (settings));
return TRUE;
}