diff options
Diffstat (limited to 'modules/admin-full/luasrc/view/admin_network/diagnostics.htm')
-rw-r--r-- | modules/admin-full/luasrc/view/admin_network/diagnostics.htm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/admin-full/luasrc/view/admin_network/diagnostics.htm b/modules/admin-full/luasrc/view/admin_network/diagnostics.htm index 48825629c9..5794a433ec 100644 --- a/modules/admin-full/luasrc/view/admin_network/diagnostics.htm +++ b/modules/admin-full/luasrc/view/admin_network/diagnostics.htm @@ -78,8 +78,10 @@ local has_traceroute6 = fs.access("/usr/bin/traceroute6") <option value="" selected="selected"><%:IPv4%></option> <option value="6"><%:IPv6%></option> </select> - <% end %> <input type="button" value="<%:Ping%>" class="cbi-button cbi-button-apply" onclick="update_status(this.form.ping, this.form.ping_proto.selectedIndex)" /> + <% else %> + <input type="button" value="<%:Ping%>" class="cbi-button cbi-button-apply" onclick="update_status(this.form.ping)" /> + <% end %> </div> <div style="width:33%; float:left"> @@ -89,8 +91,14 @@ local has_traceroute6 = fs.access("/usr/bin/traceroute6") <option value="" selected="selected"><%:IPv4%></option> <option value="6"><%:IPv6%></option> </select> - <% end %> <input type="button" value="<%:Traceroute%>" class="cbi-button cbi-button-apply" onclick="update_status(this.form.traceroute, this.form.traceroute_proto.selectedIndex)" /> + <% else %> + <input type="button" value="<%:Traceroute%>" class="cbi-button cbi-button-apply" onclick="update_status(this.form.traceroute)" /> + <% end %> + <% if not has_traceroute6 then %> + <p> </p> + <p><%:Install iputils-traceroute6 for IPv6 traceroute%></p> + <% end %> </div> <div style="width:33%; float:left;"> |