修正监控ip问题

This commit is contained in:
Yutousama 2022-03-02 12:31:16 +08:00
parent c95eb2d060
commit a6660cdb6a
2 changed files with 3 additions and 4 deletions

View File

@ -6,7 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication @SpringBootApplication
public class ToolsApplication { 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) { public static void main(String[] args) {
System.out.println("当前版本号:" + version); System.out.println("当前版本号:" + version);

View File

@ -296,8 +296,7 @@ public class NasManager {
@RequestMapping("/nas/door/cctv.do") @RequestMapping("/nas/door/cctv.do")
public void getDoorCCTV(HttpServletResponse response){ public void getDoorCCTV(HttpServletResponse response){
try { try {
System.out.println("???"); response.sendRedirect(UpdateIp.nas_ip+":9999/live/index.m3u8");
response.sendRedirect(NasUrl+":9999/live/index.m3u8");
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
@ -308,7 +307,7 @@ public class NasManager {
if(!name.endsWith(".ts")){ if(!name.endsWith(".ts")){
return; 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) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }