[network-manager-openvpn/th/export-bgo764132: 23/24] properties: only export valid numeric ping and port options



commit e3745b05469e2b7e614fa1465b79beed489977e2
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 95a0334..290210f 100644
--- a/properties/import-export.c
+++ b/properties/import-export.c
@@ -1831,13 +1831,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]