diff --git a/res/include/script/file_viewer/Viewer.js b/res/include/script/file_viewer/Viewer.js index 49f8e34..06a2c06 100644 --- a/res/include/script/file_viewer/Viewer.js +++ b/res/include/script/file_viewer/Viewer.js @@ -243,8 +243,8 @@ function fileFromAPIResp(resp) { function fileFromSkyNet(resp) { let file = fileFromAPIResp(resp) file.icon_href = "/res/img/mime/empty.png" - file.get_href = "https://siasky.net/"+resp.id - file.download_href = "https://siasky.net/"+resp.id+"?attachment=1" + file.get_href = "https://sky.pixeldrain.com/"+resp.id + file.download_href = "https://sky.pixeldrain.com/"+resp.id+"?attachment=1" file.availability_href = "" file.view_href = "" file.timeseries_href = "" diff --git a/webcontroller/file_viewer.go b/webcontroller/file_viewer.go index 4809415..cb0e448 100644 --- a/webcontroller/file_viewer.go +++ b/webcontroller/file_viewer.go @@ -165,7 +165,7 @@ func (wc *WebController) serveSkynetViewer(w http.ResponseWriter, r *http.Reques // Get the first few bytes from the file to probe the content type and // length - rq, err := http.NewRequest("GET", "https://siasky.net/"+p.ByName("id"), nil) + rq, err := http.NewRequest("GET", "https://sky.pixeldrain.com/"+p.ByName("id"), nil) if err != nil { log.Warn("Failed to make request to sia portal: %s", err) w.WriteHeader(http.StatusInternalServerError)