From 8b07a65117b8a9ebbed801579d34ae8f51255868 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 29 Jul 2016 08:21:23 +0200 Subject: [PATCH] luci-mod-admin-full: make diagnostics url customizable Signed-off-by: Florian Eckert --- modules/luci-base/root/etc/config/luci | 5 +++++ .../luasrc/view/admin_network/diagnostics.htm | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/luci-base/root/etc/config/luci b/modules/luci-base/root/etc/config/luci index baa3ac5d1..a443742f9 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 685082a33..90d711717 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 %>
+
-- 2.25.1