From 66213ef617c50624dbc47fe633ca27ef9fb7e776 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 30 Jan 2020 08:32:16 +0100 Subject: [PATCH] luci-app-advanced-reboot: fix faulty ip.new() invocation Ref: https://github.com/openwrt/luci/issues/3587#issuecomment-580044459 Signed-off-by: Jo-Philipp Wich (cherry picked from commit 6638de5f626a639169ee354bd4d1e99747c8a1c4) --- .../luasrc/controller/advanced_reboot.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua b/applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua index 097c71d67..512626351 100644 --- a/applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua +++ b/applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua @@ -183,7 +183,7 @@ function action_reboot() ltemplate.render("advanced_reboot/applyreboot", { title = i18n.translate("Rebooting..."), msg = i18n.translate("The system is rebooting now.
DO NOT POWER OFF THE DEVICE!
Wait a few minutes before you try to reconnect. It might be necessary to renew the address of your computer to reach the device again, depending on your settings."), - addr = ip.new(util.imatch(ip)() or "192.168.1.1") + addr = ip.new(util.imatch(uci:get("network", "lan", "ipaddr"))() or "192.168.1.1") }) sys.reboot() end -- 2.25.1