From: taesub kim Date: Thu, 16 Feb 2017 03:34:21 +0000 (+0900) Subject: [TSAM-12832] Empty IP and proxy string on emulator X-Git-Tag: submit/tizen/20170216.070237^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ffbeec03ac401006e42edc58907e6affe4fee512;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git [TSAM-12832] Empty IP and proxy string on emulator Change-Id: I050662bbcd859f70393631838009fcc705ef89fe Signed-off-by: Taesub Kim --- diff --git a/src/network-state.c b/src/network-state.c index 9987d1f..37706cc 100755 --- a/src/network-state.c +++ b/src/network-state.c @@ -446,8 +446,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");