[network-manager-openvpn: 23/27] properties: only export valid numeric ping and port options
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openvpn: 23/27] properties: only export valid numeric ping and port options
- Date: Tue, 29 Mar 2016 11:33:14 +0000 (UTC)
commit a53a3086b1b5888c6fbd0871d0e49e4b27ee0407
Author: Thomas Haller <thaller redhat com>
Date: Thu Mar 24 12:21:20 2016 +0100
properties: only export valid numeric ping and port options
properties/import-export.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/properties/import-export.c b/properties/import-export.c
index 23f875c..2bb256d 100644
--- a/properties/import-export.c
+++ b/properties/import-export.c
@@ -1830,13 +1830,13 @@ do_export_create (NMConnection *connection, const char *path, GError **error)
nm_streq0 (nm_setting_vpn_get_data_item (s_vpn, NM_OPENVPN_KEY_PROTO_TCP), "yes")
? "tcp" : "udp");
- args_write_line_setting_value (f, TAG_PORT, s_vpn, NM_OPENVPN_KEY_PORT);
+ args_write_line_int64_str (f, TAG_PORT, nm_setting_vpn_get_data_item (s_vpn, NM_OPENVPN_KEY_PORT));
- args_write_line_setting_value (f, TAG_PING, s_vpn, NM_OPENVPN_KEY_PING);
+ args_write_line_int64_str (f, TAG_PING, nm_setting_vpn_get_data_item (s_vpn, NM_OPENVPN_KEY_PING));
- args_write_line_setting_value (f, TAG_PING_EXIT, s_vpn, NM_OPENVPN_KEY_PING_EXIT);
+ args_write_line_int64_str (f, TAG_PING_EXIT, nm_setting_vpn_get_data_item (s_vpn,
NM_OPENVPN_KEY_PING_EXIT));
- args_write_line_setting_value (f, TAG_PING_RESTART, s_vpn, NM_OPENVPN_KEY_PING_RESTART);
+ args_write_line_int64_str (f, TAG_PING_RESTART, nm_setting_vpn_get_data_item (s_vpn,
NM_OPENVPN_KEY_PING_RESTART));
local_ip = _arg_is_set (nm_setting_vpn_get_data_item (s_vpn, NM_OPENVPN_KEY_LOCAL_IP));
remote_ip = _arg_is_set (nm_setting_vpn_get_data_item (s_vpn, NM_OPENVPN_KEY_REMOTE_IP));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]