Stop OpenVidu with error if COTURN_PORT is not valid

pull/660/head
cruizba 2021-10-07 22:20:56 +02:00
parent bced9ecfa2
commit c32622dc28
1 changed files with 1 additions and 2 deletions

View File

@ -634,8 +634,7 @@ public class OpenviduConfig {
String property = "COTURN_PORT";
coturnPort = this.asNonNegativeInteger(property);
if (coturnPort <= 0 || coturnPort > 65535){
coturnPort = 3478;
log.warn("Non valid coturn port, setting to default 3478");
addError("COTURN_PORT", "COTURN PORT is out of valid ports range (0-65535)");
}
}