mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 02:51:50 +00:00
Try to ping server even if connectivity seems down
This commit is contained in:
parent
ee146b2122
commit
43a341ca39
1 changed files with 2 additions and 1 deletions
|
@ -988,7 +988,8 @@ function interfaces_status()
|
||||||
|
|
||||||
local latency = ""
|
local latency = ""
|
||||||
local server_ping = ""
|
local server_ping = ""
|
||||||
if connectivity ~= "ERROR" and ifname ~= "" and gateway ~= "" and gw_ping ~= "DOWN" and ifname ~= nil and mArray.openmptcprouter["service_addr"] ~= "" and ipaddr ~= "" then
|
--if connectivity ~= "ERROR" and ifname ~= "" and gateway ~= "" and gw_ping ~= "DOWN" and ifname ~= nil and mArray.openmptcprouter["service_addr"] ~= "" and ipaddr ~= "" then
|
||||||
|
if ifname ~= "" and gateway ~= "" and gw_ping ~= "DOWN" and ifname ~= nil and mArray.openmptcprouter["service_addr"] ~= "" and ipaddr ~= "" then
|
||||||
local serverip = mArray.openmptcprouter["service_addr"]
|
local serverip = mArray.openmptcprouter["service_addr"]
|
||||||
if serverip == "127.0.0.1" then
|
if serverip == "127.0.0.1" then
|
||||||
serverip = mArray.openmptcprouter["wan_addr"]
|
serverip = mArray.openmptcprouter["wan_addr"]
|
||||||
|
|
Loading…
Reference in a new issue