mirror of https://github.com/OpenVidu/openvidu.git
Stop OpenVidu with error if COTURN_PORT is not valid
parent
bced9ecfa2
commit
c32622dc28
|
@ -634,8 +634,7 @@ public class OpenviduConfig {
|
||||||
String property = "COTURN_PORT";
|
String property = "COTURN_PORT";
|
||||||
coturnPort = this.asNonNegativeInteger(property);
|
coturnPort = this.asNonNegativeInteger(property);
|
||||||
if (coturnPort <= 0 || coturnPort > 65535){
|
if (coturnPort <= 0 || coturnPort > 65535){
|
||||||
coturnPort = 3478;
|
addError("COTURN_PORT", "COTURN PORT is out of valid ports range (0-65535)");
|
||||||
log.warn("Non valid coturn port, setting to default 3478");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue