From: Jo-Philipp Wich Date: Thu, 30 Jan 2020 07:32:16 +0000 (+0100) Subject: luci-app-advanced-reboot: fix faulty ip.new() invocation X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6638de5f626a639169ee354bd4d1e99747c8a1c4;p=oweals%2Fluci.git 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 --- 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