mirror of
https://github.com/openwrt/luci.git
synced 2026-02-04 12:06:01 +08:00
luci-app-attendedsysupgrade: use latest.json
The content is the same response as for `/api/latest.json` but
statically hosted by a webserver rather than Python generated.
Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit a672875402)
This commit is contained in:
@@ -226,7 +226,7 @@ function check_sysupgrade(server_url, current_version, target, board_name, packa
|
||||
var advanced_mode = uci.get_first('attendedsysupgrade', 'client', 'advanced_mode') || 0;
|
||||
var candidates = [];
|
||||
|
||||
request.get(server_url + "/api/latest", {
|
||||
request.get(server_url + "/json/latest.json", {
|
||||
timeout: 8000
|
||||
})
|
||||
.then(response => response.json())
|
||||
|
||||
Reference in New Issue
Block a user