Regard host name as remote address and add it to vici arguments 87/157287/1 accepted/tizen/unified/20171101.064659 submit/tizen/20171030.235228
authorJiung <jiung.yu@samsung.com>
Tue, 24 Oct 2017 05:33:40 +0000 (14:33 +0900)
committerJiung <jiung.yu@samsung.com>
Tue, 24 Oct 2017 05:33:53 +0000 (14:33 +0900)
Change-Id: I78beac887cc3c91165326c26511ad10e5aa194e0
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
vpn/plugins/ipsec.c

index cbc6cb6..5a22e3a 100644 (file)
@@ -596,6 +596,9 @@ static void ipsec_add_default_child_sa_data(struct vpn_provider *provider, VICIS
 static void ipsec_add_default_conn_data(struct vpn_provider *provider, VICISection *conn)
 {
        const char *version = vpn_provider_get_string(provider, "IPsec.Version");
+       const char *remote_addr = vpn_provider_get_string(provider, "Host");
+
+       vici_add_kvl(conn, "remote_addrs", remote_addr, NULL);
        if (g_strcmp0(version, "1") == 0) {
                int i = 0;
                GSList *list;