docker镜像使用自动生成的配置文件,修复#166

This commit is contained in:
648540858
2021-09-26 14:32:42 +08:00
parent 2766373632
commit 715c7d2724
2 changed files with 10 additions and 5 deletions

View File

@@ -93,7 +93,11 @@ public class MediaConfig{
}
public String getSipIp() {
return sipIp;
if (sipIp == null) {
return this.ip;
}else {
return sipIp;
}
}
public int getHttpPort() {
@@ -183,13 +187,13 @@ public class MediaConfig{
mediaServerItem.setIp(ip);
mediaServerItem.setDefaultServer(true);
mediaServerItem.setHookIp(getHookIp());
mediaServerItem.setSdpIp(sdpIp);
mediaServerItem.setStreamIp(streamIp);
mediaServerItem.setSdpIp(getSdpIp());
mediaServerItem.setStreamIp(getStreamIp());
mediaServerItem.setHttpPort(httpPort);
mediaServerItem.setHttpSSlPort(httpSSlPort);
mediaServerItem.setRtmpPort(rtmpPort);
mediaServerItem.setRtmpSSlPort(rtmpSSlPort);
mediaServerItem.setRtpProxyPort(rtpProxyPort);
mediaServerItem.setRtpProxyPort(getRtpProxyPort());
mediaServerItem.setRtspPort(rtspPort);
mediaServerItem.setRtspSSLPort(rtspSSLPort);
mediaServerItem.setAutoConfig(autoConfig);