summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiung <jiung.yu@samsung.com>2017-10-24 14:33:40 +0900
committerJiung <jiung.yu@samsung.com>2017-10-24 14:33:53 +0900
commit4ccbf7bcbc9d1df402e7262b040771950712f82b (patch)
treeb7243891af838153ee7ee715381607507d7f2fcd
parentef3acbafbed9f04abb95eb817313d388cb3e87aa (diff)
downloadconnman-submit/tizen/20171030.235228.tar.gz
connman-submit/tizen/20171030.235228.tar.bz2
connman-submit/tizen/20171030.235228.zip
Regard host name as remote address and add it to vici argumentssubmit/tizen/20171030.235228accepted/tizen/unified/20171101.064659
Change-Id: I78beac887cc3c91165326c26511ad10e5aa194e0 Signed-off-by: Yu jiung <jiung.yu@samsung.com>
-rw-r--r--vpn/plugins/ipsec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vpn/plugins/ipsec.c b/vpn/plugins/ipsec.c
index cbc6cb6a..5a22e3a7 100644
--- a/vpn/plugins/ipsec.c
+++ b/vpn/plugins/ipsec.c
@@ -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;