diff --git a/ruoyi-code/src/main/java/com/ruoyi/code/camera/scheduled/RegisterServer.java b/ruoyi-code/src/main/java/com/ruoyi/code/camera/scheduled/RegisterServer.java index 1d981aa..013b006 100644 --- a/ruoyi-code/src/main/java/com/ruoyi/code/camera/scheduled/RegisterServer.java +++ b/ruoyi-code/src/main/java/com/ruoyi/code/camera/scheduled/RegisterServer.java @@ -36,14 +36,14 @@ public class RegisterServer { private void start(){ String ip = IPUtils.getLocalIpAddress(); -// if("172.16.46.58".equals(ip)){ + if("172.16.46.58".equals(ip)){ R result = cameraService.register(); if("0".equals(result.get("code").toString())){ System.out.println("主动注册服务已启动"); }else{ System.out.println("主动注册服务启动失败"); } -// } + } } }