[test] websocket should be determined in runtime.
This commit is contained in:
1 parent
b1dd3bb9c8
commit
4ff800a8be
2 files changed
+4
-11
No files matched your search
@@ -116,11 +116,7 @@ pub async fn connect_tcp_local<
|
||||
) -> ResultType<Stream> {
|
||||
let target_str = target.to_string();
|
||||
|
||||
// if target_str.starts_with("ws://") || target_str.starts_with("wss://") {
|
||||
// Ok(Stream::WebSocket(
|
||||
// websocket::WsFramedStream::new(target_str, local, None, ms_timeout).await?,
|
||||
// ))
|
||||
if true {
|
||||
if target_str.starts_with("ws://") || target_str.starts_with("wss://") {
|
||||
Ok(Stream::WebSocket(
|
||||
websocket::WsFramedStream::new(target_str, local, None, ms_timeout).await?,
|
||||
))
|
||||
|
||||
Reference in new issue
Block a user