sync: 0.7.0 from main (3f0d10f172101035f4e0f736695e1700ee1ec967)

This commit is contained in:
github-actions[bot] committed 2026-04-17 18:41:28 +00:00
1 parent 182a719053
commit fdf612350a
34 files changed
+2032 -430

No files matched your search

+5 -3
View File
@@ -9,6 +9,7 @@ import (
config "github.com/EvolutionAPI/evolution-go/pkg/config"
instance_model "github.com/EvolutionAPI/evolution-go/pkg/instance/model"
instance_service "github.com/EvolutionAPI/evolution-go/pkg/instance/service"
"github.com/EvolutionAPI/evolution-go/pkg/utils"
)
type InstanceHandler interface {
@@ -449,9 +450,10 @@ func (i *instanceHandler) SetProxy(ctx *gin.Context) {
}
responseData := gin.H{
"host": data.Host,
"port": data.Port,
"hasAuth": data.Username != "" && data.Password != "",
"protocol": utils.NormalizeProxyProtocol(data.Protocol, data.Port),
"host": data.Host,
"port": data.Port,
"hasAuth": data.Username != "" && data.Password != "",
}
ctx.JSON(http.StatusOK, gin.H{"message": "success", "data": responseData})