1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-14 01:34:47 +08:00

fix: 修改文件引用

This commit is contained in:
ssonglius11 2024-08-02 18:26:14 +08:00
parent 0f70d37950
commit 9b36f047fd

View File

@ -10,7 +10,7 @@ import (
"github.com/1Panel-dev/1Panel/core/app/api/v1/helper"
"github.com/1Panel-dev/1Panel/core/constant"
"github.com/1Panel-dev/1Panel/core/xpack/utlis/proxy"
"github.com/1Panel-dev/1Panel/core/utils/xpack"
"github.com/gin-gonic/gin"
)
@ -22,7 +22,7 @@ func Proxy() gin.HandlerFunc {
}
currentNode := c.Request.Header.Get("CurrentNode")
if len(currentNode) != 0 && currentNode != "127.0.0.1" {
if err := proxy.Proxy(c, currentNode); err != nil {
if err := xpack.Proxy(c, currentNode); err != nil {
helper.ErrorWithDetail(c, constant.CodeErrBadRequest, constant.ErrProxy, err)
return
}