mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: remove deprecated property OPENVIDU_DOMAIN_OR_PUBLIC_IP
parent
a729cea252
commit
064887f7d8
|
@ -698,13 +698,6 @@ public class OpenviduConfig {
|
||||||
final String property = "DOMAIN_OR_PUBLIC_IP";
|
final String property = "DOMAIN_OR_PUBLIC_IP";
|
||||||
String domain = asOptionalInetAddress(property);
|
String domain = asOptionalInetAddress(property);
|
||||||
|
|
||||||
// TODO: remove when possible deprecated OPENVIDU_DOMAIN_OR_PUBLIC_IP
|
|
||||||
if (domain == null || domain.isEmpty()) {
|
|
||||||
domain = asOptionalInetAddress("OPENVIDU_DOMAIN_OR_PUBLIC_IP");
|
|
||||||
this.configProps.put("DOMAIN_OR_PUBLIC_IP", domain);
|
|
||||||
this.configProps.remove("OPENVIDU_DOMAIN_OR_PUBLIC_IP");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (domain != null && !domain.isEmpty()) {
|
if (domain != null && !domain.isEmpty()) {
|
||||||
this.domainOrPublicIp = domain;
|
this.domainOrPublicIp = domain;
|
||||||
this.openviduPublicUrl = (devContainer ? "http://" : "https://") + domain;
|
this.openviduPublicUrl = (devContainer ? "http://" : "https://") + domain;
|
||||||
|
|
Loading…
Reference in New Issue