Skip to content
Snippets Groups Projects
Unverified Commit ec6874cb authored by LinFeng's avatar LinFeng Committed by GitHub
Browse files

Merge pull request #85 from Priestch/master

fix: use right feature name
parents 83c6591b 38613759
No related branches found
No related tags found
No related merge requests found
......@@ -377,7 +377,7 @@ fn main() {
let mut server = Iron::new(chain);
server.threads = threads as usize;
#[cfg(feature = "tls")]
#[cfg(feature = "native-tls")]
let rv = if let Some(cert) = cert {
use hyper_native_tls::NativeTlsServer;
let ssl = NativeTlsServer::new(cert, certpass.unwrap_or("")).unwrap();
......@@ -385,7 +385,7 @@ fn main() {
} else {
server.http(&addr)
};
#[cfg(not(feature = "tls"))]
#[cfg(not(feature = "native-tls"))]
let rv = if cert.is_some() {
printer
.println_err(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment