openvidu-server: remove deprecated property OPENVIDU_DOMAIN_OR_PUBLIC_IP

pull/672/merge
pabloFuente 2022-08-08 22:32:06 +02:00
parent a729cea252
commit 064887f7d8
1 changed files with 0 additions and 7 deletions

View File

@ -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;