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:
parent
0ac075009e
commit
9aa5afa780
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue