Merge pull request #1524 from ZhaoYandong00/master

修复在docker中使用,平台信息IP无法显示主机IP的问题
This commit is contained in:
648540858 2024-07-18 14:08:05 +08:00 committed by GitHub
commit f331b0b0d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,7 +82,9 @@ public class SipLayer implements CommandLineRunner {
monitorIps.add(sipConfig.getIp());
}
}
sipConfig.setShowIp(String.join(",", monitorIps));
if (ObjectUtils.isEmpty(sipConfig.getShowIp())){
sipConfig.setShowIp(String.join(",", monitorIps));
}
SipFactory.getInstance().setPathName("gov.nist");
if (monitorIps.size() > 0) {
for (String monitorIp : monitorIps) {