backward compatibility

pull/1524/head^2
Darien Raymond 2018-07-14 22:06:39 +02:00
parent 14dc6371d3
commit dde06289bb
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 2 deletions

View File

@ -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