summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-advanced-reboot
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-01-30 08:32:16 +0100
committerJo-Philipp Wich <jo@mein.io>2020-01-30 08:32:16 +0100
commit6638de5f626a639169ee354bd4d1e99747c8a1c4 (patch)
tree083bdf2ce7234bafe7daa78e80baa6f6f15f12a9 /applications/luci-app-advanced-reboot
parent0268595865f9784aac12a4bc6772076cc03b88b6 (diff)
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 <jo@mein.io>
Diffstat (limited to 'applications/luci-app-advanced-reboot')
-rw-r--r--applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua2
1 files changed, 1 insertions, 1 deletions
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.<br /> DO NOT POWER OFF THE DEVICE!<br /> 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