mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-14 19:41:51 +00:00
Clean unused code in wizard
This commit is contained in:
parent
69e16dc58e
commit
51410ba8aa
1 changed files with 10 additions and 21 deletions
|
@ -7,17 +7,6 @@
|
|||
local sys = require "luci.sys"
|
||||
local ut = require "luci.util"
|
||||
local ifaces = sys.net:devices()
|
||||
local servers_ip = {}
|
||||
local server_ip = uci:get("shadowsocks-libev","sss0","server")
|
||||
if server_ip == '127.0.0.1' then
|
||||
local upstreams = uci:get("nginx-ha","ShadowSocks","upstreams")
|
||||
for _, up in pairs(upstreams) do
|
||||
local a = up:match("^([^:]+):")
|
||||
table.insert(servers_ip,a)
|
||||
end
|
||||
else
|
||||
table.insert(servers_ip,server_ip)
|
||||
end
|
||||
|
||||
function device_notvirtual(dev)
|
||||
for _, iface in ipairs(net:get_networks()) do
|
||||
|
|
Loading…
Reference in a new issue