mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: fix checkWebsocketUri condition
parent
eb87f3c9a2
commit
534f838488
|
@ -381,7 +381,7 @@ public class OpenviduConfig {
|
|||
|
||||
public URI checkWebsocketUri(String uri) throws Exception {
|
||||
try {
|
||||
if (!uri.startsWith("ws://") || uri.startsWith("wss://")) {
|
||||
if (!uri.startsWith("ws://") || !uri.startsWith("wss://")) {
|
||||
throw new Exception("WebSocket protocol not found");
|
||||
}
|
||||
String parsedUri = uri.replaceAll("^ws://", "http://").replaceAll("^wss://", "https://");
|
||||
|
|
Loading…
Reference in New Issue