[TSAM-12832] Empty IP and proxy string on emulator 75/114975/1 accepted/tizen/common/20170216.094231 accepted/tizen/ivi/20170216.095635 accepted/tizen/mobile/20170216.095543 accepted/tizen/tv/20170216.095558 accepted/tizen/wearable/20170216.095617 submit/tizen/20170216.070237
authortaesub kim <taesub.kim@samsung.com>
Thu, 16 Feb 2017 03:34:21 +0000 (12:34 +0900)
committertaesub kim <taesub.kim@samsung.com>
Thu, 16 Feb 2017 03:34:29 +0000 (12:34 +0900)
Change-Id: I050662bbcd859f70393631838009fcc705ef89fe
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
src/network-state.c

index 9987d1f..37706cc 100755 (executable)
@@ -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");