mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-23 00:00:52 +00:00
@@ -777,6 +777,7 @@ func checkProxy(req dto.ProxyUpdate) error {
|
||||
}
|
||||
transport = http.Transport{DialContext: dialContext}
|
||||
case "", "close":
|
||||
return nil
|
||||
default:
|
||||
return buserr.WithDetail("ErrNotSupportType", req.ProxyType, nil)
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
"github.com/1Panel-dev/1Panel/core/app/dto"
|
||||
"github.com/1Panel-dev/1Panel/core/constant"
|
||||
"github.com/1Panel-dev/1Panel/core/global"
|
||||
"github.com/1Panel-dev/1Panel/core/i18n"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -21,7 +22,7 @@ func CSRFTokenGuard() gin.HandlerFunc {
|
||||
if !global.SESSION.CheckCSRFToken(c, token) {
|
||||
c.AbortWithStatusJSON(http.StatusForbidden, dto.Response{
|
||||
Code: http.StatusForbidden,
|
||||
Message: "invalid request token",
|
||||
Message: i18n.GetMsgWithMap("ErrNotLogin", map[string]interface{}{"detail": "CSRF token invalid"}),
|
||||
Data: nil,
|
||||
})
|
||||
return
|
||||
|
||||
@@ -1658,7 +1658,7 @@ const message = {
|
||||
clearList: '清空列表',
|
||||
deleteRecycleHelper: '确定永久删除以下文件?',
|
||||
typeErrOrEmpty: '【{0}】 文件类型错误或为空文件夹',
|
||||
dropHelper: '将需要上传的文件拖曳到此处',
|
||||
dropHelper: '将需要上传的文件拖拽到此处',
|
||||
fileRecycleBin: '文件回收站',
|
||||
fileRecycleBinMsg: '已{0}回收站',
|
||||
wordWrap: '自动换行',
|
||||
|
||||
Reference in New Issue
Block a user