mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Proxy setting sometimes cancel requests https://github.com/siyuan-note/siyuan/issues/9725
This commit is contained in:
parent
1bab5429ac
commit
b1985eac74
3 changed files with 19 additions and 3 deletions
|
|
@ -33,6 +33,22 @@ import (
|
|||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
||||
func getNetwork(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
maskedConf, err := model.GetMaskedConf()
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = "get conf failed: " + err.Error()
|
||||
return
|
||||
}
|
||||
|
||||
ret.Data = map[string]interface{}{
|
||||
"proxy": maskedConf.System.NetworkProxy,
|
||||
}
|
||||
}
|
||||
|
||||
func getChangelog(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue