diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-10-05 19:34:22 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-10-05 19:34:22 +0000 |
commit | e68f7f44ded308f9758460dcac6159f6066cbb47 (patch) | |
tree | 9613f7fbfb313bdff1dbf20bf1a97a94c21173dc /uhttpd.c | |
parent | 045820e3b9f93de607546a8693e7fdb493029fd5 (diff) | |
download | uhttpd-e68f7f44ded308f9758460dcac6159f6066cbb47.tar.gz |
[package] uhttpd: add /etc/uhttpd.key and /etc/uhttpd.crt to conffile hints
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/package/uhttpd/src@23260 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'uhttpd.c')
-rw-r--r-- | uhttpd.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -558,7 +558,9 @@ 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) ) { - conf->lua_request(cl, req, conf->lua_state); + /* auth ok? */ + if( uh_auth_check(cl, req, pin) ) + conf->lua_request(cl, req, conf->lua_state); } else #endif |