]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: root page - serve redirect without authentication (to bypass Edge issue)
authorJaroslav Kysela <perex@perex.cz>
Mon, 24 Apr 2017 15:09:24 +0000 (17:09 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 24 Apr 2017 15:09:24 +0000 (17:09 +0200)
src/webui/webui.c

index 993d2d2324a464280a4dc3a5365ce05155a9db28..0bac6cf37592fdfeb214c801f71b46cd135f6824 100644 (file)
@@ -1897,7 +1897,8 @@ webui_init(int xspf)
   tvheadend_webroot = s;
 
   http_path_add("", NULL, page_root2, ACCESS_WEB_INTERFACE);
-  http_path_add("/", NULL, page_root, ACCESS_WEB_INTERFACE);
+  hp = http_path_add("/", NULL, page_root, ACCESS_WEB_INTERFACE);
+  hp->hp_no_verification = 1; /* redirect only */
   http_path_add("/login", NULL, page_login, ACCESS_WEB_INTERFACE);
   hp = http_path_add("/logout", NULL, page_logout, ACCESS_WEB_INTERFACE);
   hp->hp_no_verification = 1;