summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiung <jiung.yu@samsung.com>2017-10-24 05:33:40 (GMT)
committerJiung <jiung.yu@samsung.com>2017-10-24 05:33:53 (GMT)
commit4ccbf7bcbc9d1df402e7262b040771950712f82b (patch)
treeb7243891af838153ee7ee715381607507d7f2fcd
parentef3acbafbed9f04abb95eb817313d388cb3e87aa (diff)
downloadconnman-4ccbf7bcbc9d1df402e7262b040771950712f82b.zip
connman-4ccbf7bcbc9d1df402e7262b040771950712f82b.tar.gz
connman-4ccbf7bcbc9d1df402e7262b040771950712f82b.tar.bz2
Regard host name as remote address and add it to vici argumentssubmit/tizen/20171030.235228accepted/tizen/unified/20171101.064659refs/changes/87/157287/1
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 cbc6cb6..5a22e3a 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;