Skip to content

Commit

Permalink
Merge pull request #85 from Priestch/master
Browse files Browse the repository at this point in the history
fix: use right feature name
  • Loading branch information
TheWaWaR authored Apr 24, 2023
2 parents 83c6591 + 3861375 commit ec6874c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,15 +377,15 @@ 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();
server.https(&addr, ssl)
} else {
server.http(&addr)
};
#[cfg(not(feature = "tls"))]
#[cfg(not(feature = "native-tls"))]
let rv = if cert.is_some() {
printer
.println_err(
Expand Down

0 comments on commit ec6874c

Please sign in to comment.