diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-05-30 20:55:14 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-05-30 20:55:14 +0000 |
commit | 4f58248a7d2c0fa96ba03ddd344206764f120288 (patch) | |
tree | 6ee19881894e5396ecc02743ac64b0915a653cff /package/network/services/uhttpd/files/uhttpd.init | |
parent | b34988d5d0c6104eea40859224ecb84e9e8ab3ce (diff) | |
download | mtk-20170518-4f58248a7d2c0fa96ba03ddd344206764f120288.zip mtk-20170518-4f58248a7d2c0fa96ba03ddd344206764f120288.tar.gz mtk-20170518-4f58248a7d2c0fa96ba03ddd344206764f120288.tar.bz2 |
uhttpd: add support for enforcing https
Also set HTTPS environment variable for CGI programs on SSL connections.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 45852
Diffstat (limited to 'package/network/services/uhttpd/files/uhttpd.init')
-rwxr-xr-x | package/network/services/uhttpd/files/uhttpd.init | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/network/services/uhttpd/files/uhttpd.init b/package/network/services/uhttpd/files/uhttpd.init index c493aaf..1ebe38e 100755 --- a/package/network/services/uhttpd/files/uhttpd.init +++ b/package/network/services/uhttpd/files/uhttpd.init @@ -126,6 +126,8 @@ start_instance() procd_append_param command -s "$listen" done } + + append_bool "$cfg" redirect_https "-q" 0 } procd_close_instance |