소스 검색

backward compatibility

Darien Raymond 7 년 전
부모
커밋
dde06289bb
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      proxy/dokodemo/dokodemo.go

+ 1 - 2
proxy/dokodemo/dokodemo.go

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