From d50dd3fe8465df67986ab49bab008c7e371f63cb Mon Sep 17 00:00:00 2001 From: xiaoQQya <xiaoQQya@126.com> Date: 星期六, 04 二月 2023 18:12:25 +0800 Subject: [PATCH] perf(ZLMRESTfulUtils): 修改OkHttpClient 读取超时时间,解决点播时截图快照获取超时的问题 --- src/main/java/com/genersoft/iot/vmp/conf/MediaConfig.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/conf/MediaConfig.java b/src/main/java/com/genersoft/iot/vmp/conf/MediaConfig.java index 29b2d8d..fe535bf 100644 --- a/src/main/java/com/genersoft/iot/vmp/conf/MediaConfig.java +++ b/src/main/java/com/genersoft/iot/vmp/conf/MediaConfig.java @@ -25,7 +25,7 @@ @Value("${media.ip}") private String ip; - @Value("${media.hook-ip:${sip.ip}}") + @Value("${media.hook-ip:}") private String hookIp; @Value("${sip.ip}") @@ -86,7 +86,7 @@ public String getHookIp() { if (ObjectUtils.isEmpty(hookIp)){ - return sipIp; + return sipIp.split(",")[0]; }else { return hookIp; } -- Gitblit v1.8.0