mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-04-12 10:56:24 +00:00
[test] websocket should be determined in runtime.
This commit is contained in:
@@ -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