修正监控ip问题
This commit is contained in:
parent
c95eb2d060
commit
a6660cdb6a
@ -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);
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user