add context for conn

This commit is contained in:
ginuerzh
2025-08-04 19:29:38 +08:00
parent ad5cf6fd61
commit b597467858
90 changed files with 889 additions and 917 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import (
"github.com/go-gost/core/auth"
"github.com/go-gost/core/logger"
ctxvalue "github.com/go-gost/x/ctx"
xctx "github.com/go-gost/x/ctx"
"github.com/go-gost/x/internal/plugin"
)
@@ -54,7 +54,7 @@ func (p *httpPlugin) Authenticate(ctx context.Context, user, password string, op
}
var clientAddr string
if v := ctxvalue.SrcAddrFromContext(ctx); v != nil {
if v := xctx.SrcAddrFromContext(ctx); v != nil {
clientAddr = v.String()
}