Fix: concurrent logging lock / Feat: listen SSL (#287)

This commit is contained in:
HFO4
2020-05-23 13:17:48 +08:00
parent e038350cf0
commit bfb5b34edc
5 changed files with 33 additions and 0 deletions

View File

@@ -37,11 +37,13 @@ func CheckUpdate() {
res, err := client.Request("GET", "https://api.github.com/repos/cloudreve/cloudreve/releases", nil).GetResponse()
if err != nil {
util.Log().Warning("更新检查失败, %s", err)
return
}
var list []GitHubRelease
if err := json.Unmarshal([]byte(res), &list); err != nil {
util.Log().Warning("更新检查失败, %s", err)
return
}
if len(list) > 0 {