mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Only a warning if ShadowSocks is disabled and fix
This commit is contained in:
parent
fc5ef2c397
commit
06bc6ac46b
2 changed files with 29 additions and 12 deletions
|
@ -263,7 +263,7 @@ function get_ip(interface)
|
|||
end
|
||||
|
||||
function get_gateway(interface)
|
||||
local gateway = nil
|
||||
local gateway = ""
|
||||
local dump = nil
|
||||
|
||||
dump = require("luci.util").ubus("network.interface.%s" % interface, "status", {})
|
||||
|
@ -350,6 +350,12 @@ function interfaces_status()
|
|||
mArray.openmptcprouter["socks_service"] = true
|
||||
end
|
||||
|
||||
mArray.openmptcprouter["socks_service_enabled"] = true
|
||||
local ss_server = uci:get("shadowsocks-libev","sss0","disabled") or "0"
|
||||
if ss_server == "1" then
|
||||
mArray.openmptcprouter["socks_service_enabled"] = false
|
||||
end
|
||||
|
||||
-- Add DHCP infos by parsing dnsmasq config file
|
||||
mArray.openmptcprouter.dhcpd = {}
|
||||
dnsmasq = ut.trim(sys.exec("cat /var/etc/dnsmasq.conf*"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue