aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorkhai96_ <hvksmr1996@gmail.com>2019-04-19 11:56:23 +0000
committerkhai96_ <hvksmr1996@gmail.com>2019-04-19 11:56:23 +0000
commit6a5c58ee79fc9b4714784ef136a377bc71e6d01d (patch)
treeb32c4e206c36b93d15fcf87a60a985d0ee2ab24d /src/main.rs
parentMerge pull request #74 from KSXGitHub/pullrequest.editorconfig (diff)
downloadminiserve-6a5c58ee79fc9b4714784ef136a377bc71e6d01d.tar.gz
miniserve-6a5c58ee79fc9b4714784ef136a377bc71e6d01d.zip
Add support for hashed password (sha256)
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 42a43b5..96e05c0 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -35,7 +35,7 @@ pub struct MiniserveConfig {
pub interfaces: Vec<IpAddr>,
/// Enable HTTP basic authentication
- pub auth: Option<auth::BasicAuthParams>,
+ pub auth: Option<auth::RequiredAuth>,
/// If false, miniserve will serve the current working directory
pub path_explicitly_chosen: bool,