Skip to content

Commit 9d7ad7b

Browse files
committed
Revert "fix: Setting the correct websocket address if TLS is enabled"
This reverts commit 1aa6b9b.
1 parent 571355e commit 9d7ad7b

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

twilight-lavalink/src/node.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -694,18 +694,8 @@ impl Drop for Connection {
694694
const TWILIGHT_CLIENT_NAME: &str = concat!("twilight-lavalink/", env!("CARGO_PKG_VERSION"));
695695

696696
fn connect_request(state: &NodeConfig) -> Result<ClientBuilder, NodeError> {
697-
let websocket = if cfg!(any(
698-
feature = "native-tls",
699-
feature = "rustls-native-roots",
700-
feature = "rustls-webpki-roots"
701-
)) {
702-
"wss"
703-
} else {
704-
"ws"
705-
};
706-
707697
let mut builder = ClientBuilder::new()
708-
.uri(&format!("{}://{}/v4/websocket", websocket, state.address))
698+
.uri(&format!("ws://{}/v4/websocket", state.address))
709699
.map_err(|source| NodeError {
710700
kind: NodeErrorType::BuildingConnectionRequest,
711701
source: Some(Box::new(source)),

0 commit comments

Comments
 (0)