uhttpd: add option to reject requests from RFC1918 IPs to public server IPs (DNS...
[openwrt/staging/chunkeey.git] / package / uhttpd / src / uhttpd.h
index 32e39700722c7c41488539ad1d197fa71a77f181..fd2176ebdd9c7a3fc5e4470698e8c6bb2c352b4f 100644 (file)
@@ -64,8 +64,12 @@ struct config {
        char docroot[PATH_MAX];
        char *realm;
        char *file;
+       char *index_file;
+       char *error_handler;
        int no_symlinks;
+       int no_dirlists;
        int network_timeout;
+       int rfc1918_filter;
 #ifdef HAVE_CGI
        char *cgi_prefix;
 #endif
@@ -124,6 +128,7 @@ struct auth_realm {
 struct http_request {
        int     method;
        float version;
+       int redirect_status;
        char *url;
        char *headers[UH_LIMIT_HEADERS];
        struct auth_realm *realm;