修正监控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
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);

View File

@ -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();
}