platform/shared/common/RhodesApp.cpp in rhodes-5.5.0.3 vs platform/shared/common/RhodesApp.cpp in rhodes-5.5.0.7

- old
+ new

@@ -1716,10 +1716,22 @@ #ifdef OS_WINCE if (isWebkitOutofProcess()) m_isJSFSApp = false; //We need local server for out of process webkit, it use sockets to call common API #endif - m_strHomeUrl = "http://127.0.0.1:"; + boolean force_https = false; +#ifdef OS_MACOSX + if (rho_conf_is_property_exists("ios_https_local_server")!=0) { + force_https = rho_conf_getBool("ios_https_local_server")!=0; + } +#endif + if (force_https) { + m_strHomeUrl = "https://127.0.0.1:"; + } + else { + m_strHomeUrl = "http://127.0.0.1:"; + } + m_strHomeUrl += getFreeListeningPort(); #ifndef RHODES_EMULATOR m_strLoadingPagePath = "file://" + getRhoRootPath() + "apps/app/loading.html"; m_strLoadingPngPath = getRhoRootPath() + "apps/app/loading.png";