0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-14 04:19:36 +03:00

Chore: Run gofmt (#3990)

This commit is contained in:
zonescape
2024-11-09 14:16:11 +03:00
committed by GitHub
parent bc4bf3d38f
commit 83bab5dd90
50 changed files with 272 additions and 273 deletions

View File

@ -30,9 +30,9 @@ func New(ctx context.Context, config *Config) (*Handler, error) {
// Process implements OutboundHandler.Dispatch().
func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer internet.Dialer) error {
outbounds := session.OutboundsFromContext(ctx)
ob := outbounds[len(outbounds) - 1]
ob := outbounds[len(outbounds)-1]
ob.Name = "blackhole"
nBytes := h.response.WriteTo(link.Writer)
if nBytes > 0 {
// Sleep a little here to make sure the response is sent to client.