Browse Source

Add debug for DHCP check

Luis Rosales 2 tháng trước cách đây
mục cha
commit
0b9faa95c0
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      package/src/client2server-unified.lua

+ 2 - 0
package/src/client2server-unified.lua

@@ -493,7 +493,9 @@ local function co_dhcp()
     local leases = {}
     
     while true do
+        if cfg.debug then log("debug", "CHECK DHCP") end
         local f = io.open("/var/lib/dnsmasq/dnsmasq.leases", "r")
+        if not f and cfg.debug then log("debug", "No DHCP file") end
         if f then
             local current = {}
             for line in f:lines() do