From 45650ea93b723db551fec8c77fbac5065c7659a6 Mon Sep 17 00:00:00 2001 From: jikstra Date: Fri, 10 Sep 2021 16:23:26 +0200 Subject: Implement --show-wget-footer argument --- src/config.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/config.rs') 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, @@ -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, }) } -- cgit v1.2.3