修复在docker中使用,平台信息IP无法显示主机IP的问题

配置sip,showip用来显示主机IP
pull/1524/head
ZhaoYandong00 2024-07-08 16:34:29 +08:00 committed by GitHub
parent cf5ca3afb9
commit d1af677fff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

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