mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Check device via l3_device
This commit is contained in:
parent
523d416454
commit
6ea9041601
1 changed files with 5 additions and 5 deletions
|
@ -914,9 +914,9 @@ function interfaces_status()
|
||||||
-- Don't show if0 in the overview
|
-- Don't show if0 in the overview
|
||||||
--if interface == "lo" then return end
|
--if interface == "lo" then return end
|
||||||
|
|
||||||
local ifname = section["ifname"] or ""
|
local ifname = get_device(interface)
|
||||||
if ifname == "" then
|
if ifname == "" then
|
||||||
ifname = get_device(interface)
|
ifname = section["ifname"] or ""
|
||||||
end
|
end
|
||||||
duplicateif = false
|
duplicateif = false
|
||||||
if ifname ~= "" and ifname ~= nil then
|
if ifname ~= "" and ifname ~= nil then
|
||||||
|
@ -1211,9 +1211,9 @@ function set_ipv6_state(disable_ipv6)
|
||||||
luci.sys.call("uci -q del dhcp.lan.ra_default")
|
luci.sys.call("uci -q del dhcp.lan.ra_default")
|
||||||
ucic:set("shadowsocks-libev","hi","local_address","0.0.0.0")
|
ucic:set("shadowsocks-libev","hi","local_address","0.0.0.0")
|
||||||
else
|
else
|
||||||
-- ucic:set("dhcp","lan","dhcpv6","server")
|
ucic:set("dhcp","lan","dhcpv6","server")
|
||||||
-- ucic:set("dhcp","lan","ra","server")
|
ucic:set("dhcp","lan","ra","server")
|
||||||
-- ucic:set("dhcp","lan","ra_default","1")
|
ucic:set("dhcp","lan","ra_default","1")
|
||||||
ucic:set("shadowsocks-libev","hi","local_address","::")
|
ucic:set("shadowsocks-libev","hi","local_address","::")
|
||||||
end
|
end
|
||||||
ucic:save("dhcp")
|
ucic:save("dhcp")
|
||||||
|
|
Loading…
Reference in a new issue