mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Small changes
This commit is contained in:
parent
ee8d5282be
commit
78da2806d9
2 changed files with 3 additions and 3 deletions
|
@ -773,7 +773,7 @@ function interfaces_status()
|
|||
if tun_dev == "" then
|
||||
tun_dev = get_device("omrvpn")
|
||||
end
|
||||
if tun_dev ~= "" and tun_dev ~= false then
|
||||
if tun_dev ~= "" and tun_dev ~= nil then
|
||||
local peer = get_gateway("omrvpn")
|
||||
if peer == "" then
|
||||
peer = ut.trim(sys.exec("ip -4 r list dev " .. tun_dev .. " | grep kernel | awk '/proto kernel/ {print $1}' | grep -v / | tr -d '\n'"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue