mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -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 origDest, ok := proxy.OriginalTargetFromContext(ctx); ok {
|
||||
dest = origDest
|
||||
}
|
||||
if handshake, ok := conn.(hasHandshakeAddress); ok {
|
||||
} else if handshake, ok := conn.(hasHandshakeAddress); ok {
|
||||
addr := handshake.HandshakeAddress()
|
||||
if addr != nil {
|
||||
dest.Address = addr
|
||||
|
Loading…
Reference in New Issue
Block a user