[package] uhttpd: add /etc/uhttpd.key and /etc/uhttpd.crt to conffile hints
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23260 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
ffe051af99
commit
62f58cd112
|
@ -68,6 +68,8 @@ endef
|
|||
|
||||
define Package/uhttpd/conffiles
|
||||
/etc/config/uhttpd
|
||||
/etc/uhttpd.crt
|
||||
/etc/uhttpd.key
|
||||
endef
|
||||
|
||||
define Package/uhttpd/install
|
||||
|
|
|
@ -558,6 +558,8 @@ static void uh_mainloop(struct config *conf, fd_set serv_fds, int max_fd)
|
|||
if( conf->lua_state &&
|
||||
uh_path_match(conf->lua_prefix, req->url) )
|
||||
{
|
||||
/* auth ok? */
|
||||
if( uh_auth_check(cl, req, pin) )
|
||||
conf->lua_request(cl, req, conf->lua_state);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue