mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
backward compatibility
This commit is contained in:
parent
14dc6371d3
commit
dde06289bb
@ -68,8 +68,7 @@ func (d *DokodemoDoor) Process(ctx context.Context, network net.Network, conn in
|
|||||||
if d.config.FollowRedirect {
|
if d.config.FollowRedirect {
|
||||||
if origDest, ok := proxy.OriginalTargetFromContext(ctx); ok {
|
if origDest, ok := proxy.OriginalTargetFromContext(ctx); ok {
|
||||||
dest = origDest
|
dest = origDest
|
||||||
}
|
} else if handshake, ok := conn.(hasHandshakeAddress); ok {
|
||||||
if handshake, ok := conn.(hasHandshakeAddress); ok {
|
|
||||||
addr := handshake.HandshakeAddress()
|
addr := handshake.HandshakeAddress()
|
||||||
if addr != nil {
|
if addr != nil {
|
||||||
dest.Address = addr
|
dest.Address = addr
|
||||||
|
Loading…
Reference in New Issue
Block a user