Browse Source

Fix https://github.com/XTLS/Xray-core/issues/3128

RPRX 1 year ago
parent
commit
d3a218f896
1 changed files with 1 additions and 1 deletions
  1. 1 1
      transport/internet/httpupgrade/dialer.go

+ 1 - 1
transport/internet/httpupgrade/dialer.go

@@ -36,9 +36,9 @@ func dialhttpUpgrade(ctx context.Context, dest net.Destination, streamSettings *
 		} else {
 		} else {
 			conn = tls.Client(pconn, tlsConfig)
 			conn = tls.Client(pconn, tlsConfig)
 		}
 		}
-
 		requestURL.Scheme = "https"
 		requestURL.Scheme = "https"
 	} else {
 	} else {
+		conn = pconn
 		requestURL.Scheme = "http"
 		requestURL.Scheme = "http"
 	}
 	}