aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorjikstra <jikstra@disroot.org>2021-09-10 14:23:26 +0000
committerjikstra <jikstra@disroot.org>2021-09-10 14:32:07 +0000
commit45650ea93b723db551fec8c77fbac5065c7659a6 (patch)
treefeeac7e6f4da2b7a99a6177f7ab52f0d44ac3253 /src/config.rs
parentFix tests (diff)
downloadminiserve-45650ea93b723db551fec8c77fbac5065c7659a6.tar.gz
miniserve-45650ea93b723db551fec8c77fbac5065c7659a6.zip
Implement --show-wget-footer argument
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 86fe314..ce4e5d7 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -101,6 +101,9 @@ pub struct MiniserveConfig {
/// If enabled, version footer is hidden
pub hide_version_footer: bool,
+ /// If enabled, display a wget command to recursively download the current directory
+ pub show_wget_footer: bool,
+
/// If set, use provided rustls config for TLS
#[cfg(feature = "tls")]
pub tls_rustls_config: Option<rustls::ServerConfig>,
@@ -192,6 +195,7 @@ impl MiniserveConfig {
header: args.header,
show_symlink_info: args.show_symlink_info,
hide_version_footer: args.hide_version_footer,
+ show_wget_footer: args.show_wget_footer,
tls_rustls_config: tls_rustls_server_config,
})
}