From 8b07a65117b8a9ebbed801579d34ae8f51255868 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 29 Jul 2016 08:21:23 +0200 Subject: luci-mod-admin-full: make diagnostics url customizable Signed-off-by: Florian Eckert --- modules/luci-base/root/etc/config/luci | 5 +++++ .../luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/luci-base/root/etc/config/luci b/modules/luci-base/root/etc/config/luci index baa3ac5d1e..a443742f93 100644 --- a/modules/luci-base/root/etc/config/luci +++ b/modules/luci-base/root/etc/config/luci @@ -22,3 +22,8 @@ config internal ccache option enable 1 config internal themes + +config internal 'diag' + option ping 'dev.openwrt.org' + option route 'dev.openwrt.org' + option dns 'dev.openwrt.org' diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm index 685082a335..90d7117175 100644 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm +++ b/modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm @@ -63,7 +63,7 @@ local has_traceroute6 = fs.access("/usr/bin/traceroute6")
-
+
<% if has_ping6 then %>
+
<% if has_traceroute6 then %>
+
-- cgit v1.2.3