1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2019-09-02 18:01:06 +02:00
parent ee8d5282be
commit 78da2806d9
2 changed files with 3 additions and 3 deletions

View file

@ -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'"))