From f0375165ac3717b48dd83db6462d89dcc20684c7 Mon Sep 17 00:00:00 2001 From: taesub kim Date: Thu, 16 Feb 2017 12:34:21 +0900 Subject: [PATCH] [TSAM-12832] Empty IP and proxy string on emulator Change-Id: I050662bbcd859f70393631838009fcc705ef89fe Signed-off-by: Taesub Kim --- src/network-state.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/network-state.c b/src/network-state.c index 5e88eea..98e3e02 100755 --- a/src/network-state.c +++ b/src/network-state.c @@ -449,8 +449,13 @@ static void __netconfig_update_default_connection_info(void) const char *proxy_addr = netconfig_get_default_proxy(); unsigned int freq = netconfig_get_default_frequency(); - if (emulator_is_emulated() == TRUE) + if (emulator_is_emulated() == TRUE) { + if (ip_addr != NULL) + netconfig_set_vconf_str(VCONFKEY_NETWORK_IP, ip_addr); + else + netconfig_set_vconf_str(VCONFKEY_NETWORK_IP, ""); return; + } if (profile == NULL) DBG("Reset network state configuration"); -- 2.34.1