[OpenWrt-Devel,2/2] services/uhttpd: add hsts uci support

Message ID 20180802091603.13980-2-fe@dev.tdt.de
State New
Delegated to: Jo-Philipp Wich
Headers show
Series
  • [OpenWrt-Devel,1/2] services/uhttpd: add Strict-Transport-Security option
Related show

Commit Message

Florian Eckert Aug. 2, 2018, 9:16 a.m.
Make new uhttpd hsts option configurable over uci.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
---
 package/network/services/uhttpd/files/uhttpd.init | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/package/network/services/uhttpd/files/uhttpd.init b/package/network/services/uhttpd/files/uhttpd.init
index 47270bcc15..66dd9182f9 100755
--- a/package/network/services/uhttpd/files/uhttpd.init
+++ b/package/network/services/uhttpd/files/uhttpd.init
@@ -122,6 +122,7 @@  start_instance()
 	append_arg "$cfg" error_page "-E"
 	append_arg "$cfg" max_requests "-n" 3
 	append_arg "$cfg" max_connections "-N"
+	append_arg "$cfg" hsts "-P"
 
 	append_bool "$cfg" no_ubusauth "-a" 0
 	append_bool "$cfg" no_symlinks "-S" 0