Selaa lähdekoodia

增加port_ssl端口

a158 9 kuukautta sitten
vanhempi
sitoutus
cefe376aa7
3 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 1 0
      src/core/app.cpp
  2. 1 0
      src/core/config.cpp
  3. 1 0
      src/core/config.h

+ 1 - 0
src/core/app.cpp

@@ -67,6 +67,7 @@ bool fastweb::app::start(const std::string& config_filepath)
 		network::http::host_config host_config;
 		host_config.domain = iter->first;
 		host_config.port = iter->second.port;
+		host_config.port_ssl = iter->second.port_ssl;
 		host_config.ssl = iter->second.https;
 		ws_config.host.push_back(host_config);
 

+ 1 - 0
src/core/config.cpp

@@ -101,6 +101,7 @@ void fastweb::config::cache()
 
 		struct config::domain dm;
 		dm.port = ylib::stoi(m_ini.read(website.domain[i], "port"));
+		dm.port_ssl = ylib::stoi(m_ini.read(website.domain[i], "port_ssl"));
 		dm.https = m_ini.read(website.domain[i],"https")=="1";
 		dm.ssl.pem_key = ylib::file::read(PATH_EX(m_ini.read(website.domain[i], "ssl_key")));
 		dm.ssl.pem_cert = ylib::file::read(PATH_EX(m_ini.read(website.domain[i], "ssl_pem")));

+ 1 - 0
src/core/config.h

@@ -10,6 +10,7 @@ namespace fastweb
 		struct domain {
 			bool https = false;
 			ushort port = 0;
+			ushort port_ssl = 0;
 			network::http::ssl_config ssl;
 		};
 		struct scripts {