openvidu-server: remove userInfo from IP cameras identifiers

pull/553/head
pabloFuente 2020-11-03 18:31:36 +01:00
parent 1ace424d89
commit f6a63e92df
1 changed files with 2 additions and 1 deletions

View File

@ -1012,7 +1012,8 @@ public class KurentoSessionManager extends SessionManager {
}
String rtspConnectionId = kMediaOptions.getTypeOfVideo() + "_" + protocol + "_"
+ RandomStringUtils.randomAlphanumeric(4).toUpperCase() + "_" + url.getAuthority() + url.getPath();
+ RandomStringUtils.randomAlphanumeric(4).toUpperCase() + "_" + url.getHost()
+ (url.getPort() != -1 ? (":" + url.getPort()) : "") + url.getPath();
rtspConnectionId = rtspConnectionId.replace("/", "_").replace("-", "").replace(".", "_").replace(":", "_");
rtspConnectionId = IdentifierPrefixes.IPCAM_ID + rtspConnectionId;