diff --git a/webui/src/main/java/com/muwire/webui/ConfigurationServlet.java b/webui/src/main/java/com/muwire/webui/ConfigurationServlet.java index b7de8c05..b128ce15 100644 --- a/webui/src/main/java/com/muwire/webui/ConfigurationServlet.java +++ b/webui/src/main/java/com/muwire/webui/ConfigurationServlet.java @@ -33,7 +33,7 @@ public class ConfigurationServlet extends HttpServlet { } private void clearAllBooleans() { - core.getMuOptions().setAllowUntrusted(false); + core.getMuOptions().setAllowUntrusted(true); core.getMuOptions().setSearchExtraHop(false); core.getMuOptions().setAllowTrustLists(false); core.getMuOptions().setShareDownloadedFiles(false); @@ -44,7 +44,7 @@ public class ConfigurationServlet extends HttpServlet { private void update(String name, String value) { switch(name) { - case "allowUntrusted" : core.getMuOptions().setAllowUntrusted(true); break; + case "allowUntrusted" : core.getMuOptions().setAllowUntrusted(false); break; case "searchExtraHop" : core.getMuOptions().setSearchExtraHop(true); break; case "allowTrustLists": core.getMuOptions().setAllowTrustLists(true); break; case "trustListInterval" : core.getMuOptions().setTrustListInterval(Integer.parseInt(value)); break; diff --git a/webui/src/main/webapp/ConfigurationPage.jsp b/webui/src/main/webapp/ConfigurationPage.jsp index 6e6fd23e..93b58aeb 100644 --- a/webui/src/main/webapp/ConfigurationPage.jsp +++ b/webui/src/main/webapp/ConfigurationPage.jsp @@ -31,11 +31,71 @@ Core core = (Core) application.getAttribute("core");
| Search in comments | -name="searchComments" value="true"> |
|
| Allow browsing | -name="browseFiles" value="true"> |
+
| Retry failed downloads every (seconds) | ++ |
| Save downloaded files to | ++ |
| Store incomplete files in | ++ |
| Total upload slots (-1 means unlimited) | ++ |
| Upload slots per user (-1 means unlimited) | ++ |
| Share downloaded files | +name="shareDownloadedFiles" value="true"> |
+
| Share hidden files | +name="shareHiddenFiles" value="true"> |
+
| Allow only trusted connections | +name="allowUntrusted" value="true"> |
+
| Search extra hop | +name="searchExtraHop" value="true"> |
+
| Allow others to view my trust list | +name="allowTrustLists" value="true"> |
+
| Update trust lists every (hours) | +