From a6660cdb6a8595cb8a9f485220c393541deb1630 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Wed, 2 Mar 2022 12:31:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=9B=91=E6=8E=A7ip=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/tools/ToolsApplication.java | 2 +- src/main/java/com/yutou/tools/nas/NasManager.java | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/yutou/tools/ToolsApplication.java b/src/main/java/com/yutou/tools/ToolsApplication.java index 900ba7e..e189d31 100644 --- a/src/main/java/com/yutou/tools/ToolsApplication.java +++ b/src/main/java/com/yutou/tools/ToolsApplication.java @@ -6,7 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class ToolsApplication { - public static final String version="1.4.4.4"; + public static final String version="1.4.4.5"; public static void main(String[] args) { System.out.println("当前版本号:" + version); diff --git a/src/main/java/com/yutou/tools/nas/NasManager.java b/src/main/java/com/yutou/tools/nas/NasManager.java index eaa8bae..b721650 100644 --- a/src/main/java/com/yutou/tools/nas/NasManager.java +++ b/src/main/java/com/yutou/tools/nas/NasManager.java @@ -296,8 +296,7 @@ public class NasManager { @RequestMapping("/nas/door/cctv.do") public void getDoorCCTV(HttpServletResponse response){ try { - System.out.println("???"); - response.sendRedirect(NasUrl+":9999/live/index.m3u8"); + response.sendRedirect(UpdateIp.nas_ip+":9999/live/index.m3u8"); } catch (IOException e) { e.printStackTrace(); } @@ -308,7 +307,7 @@ public class NasManager { if(!name.endsWith(".ts")){ return; } - response.sendRedirect(NasUrl+":9999/live/"+request.getRequestURI().replace("/nas/door/","")); + response.sendRedirect(UpdateIp.nas_ip+":9999/live/"+request.getRequestURI().replace("/nas/door/","")); } catch (Exception e) { e.printStackTrace(); }