mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
sync (#546)
This commit is contained in:
commit
511231cc1a
3 changed files with 12 additions and 3 deletions
|
@ -445,13 +445,14 @@ local statuslogo = ucic:get("openmptcprouter","settings","statuslogo") or "openm
|
|||
cssc = 'rgb(144, 240, 144)';
|
||||
statusIcon = "<%=resource%>/openmptcprouter/images/statusWarning.png";
|
||||
statusMessageClass = "warning";
|
||||
statusMessage = "Some connectivity tests failed";
|
||||
statusMessage = "Some connectivity tests failed" + '<br />';
|
||||
break;
|
||||
default:
|
||||
stat = 'Unknown';
|
||||
cssc = 'rgb(144, 240, 144)';
|
||||
statusIcon = "<%=resource%>/openmptcprouter/images/statusWarning.png";
|
||||
statusMessageClass = "warning";
|
||||
statusMessage = "Unknown status";
|
||||
statusMessage = "Unknown status (" + mArray.wans[i].status + ")" + '<br />';
|
||||
}
|
||||
// Populate info
|
||||
var wanip = mArray.wans[i].wanip;
|
||||
|
|
|
@ -305,6 +305,10 @@ return view.extend({
|
|||
o = s.taboption('general', form.DynamicList, 'ipset',
|
||||
_('IP sets'),
|
||||
_('List of IP sets to populate with the IPs of DNS lookup results of the FQDNs also specified here.'));
|
||||
o.filter = function(section_id, name) {
|
||||
return (section_id.startsWith('omr_dscp') == false);
|
||||
};
|
||||
|
||||
o.optional = true;
|
||||
o.placeholder = '/example.org/ipset,ipset6';
|
||||
|
||||
|
@ -754,6 +758,9 @@ return view.extend({
|
|||
_('List of IP sets to populate with the IPs of DNS lookup results of the FQDNs also specified here.'));
|
||||
|
||||
ss = o.subsection;
|
||||
ss.filter = function(section_id, name) {
|
||||
return (section_id.startsWith('omr_') == false);
|
||||
};
|
||||
|
||||
ss.addremove = true;
|
||||
ss.anonymous = true;
|
||||
|
|
|
@ -1273,6 +1273,7 @@ function interfaces_status()
|
|||
local mac = section ["macaddr"] or ""
|
||||
local itype = section ["type"] or ""
|
||||
local state = uci:get("openmptcprouter", interface, "state") or ""
|
||||
local connectivity = "OK"
|
||||
|
||||
--if not ipaddr or not gateway then return end
|
||||
-- Don't show if0 in the overview
|
||||
|
@ -1311,7 +1312,7 @@ function interfaces_status()
|
|||
|
||||
if enabled == "0" then return end
|
||||
|
||||
local connectivity = "OK"
|
||||
--local connectivity = "OK"
|
||||
if ipaddr == "" and ifname ~= nil and ifname ~= "" and proto ~= "dhcpv6" then
|
||||
ipaddr = ut.trim(sys.exec("ip -4 -br addr ls dev " .. ifname .. " | awk -F'[ /]+' '{print $3}' | tr -d '\n'"))
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue