mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-14 17:49:15 -04:00
Do not convert @ to \x00
This commit is contained in:
@@ -260,11 +260,7 @@ func (h *Handler) Process(ctx context.Context, network net.Network, connection i
|
||||
}
|
||||
return nil
|
||||
}); err != nil {
|
||||
dest := fb.Dest
|
||||
if dest[0] == '\x00' {
|
||||
dest = "@" + dest[1:]
|
||||
}
|
||||
return newError("failed to dial to " + dest).Base(err).AtWarning()
|
||||
return newError("failed to dial to " + fb.Dest).Base(err).AtWarning()
|
||||
}
|
||||
defer conn.Close() // nolint: errcheck
|
||||
|
||||
|
||||
Reference in New Issue
Block a user