瀏覽代碼

disable security level initialization when configuration.testMode is true

tags/v0.12.4
Jonathan Cobb 4 年之前
父節點
當前提交
142c208394
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      bubble-server/src/main/java/bubble/service/cloud/StandardDeviceIdService.java

+ 2
- 0
bubble-server/src/main/java/bubble/service/cloud/StandardDeviceIdService.java 查看文件

@@ -103,6 +103,7 @@ public class StandardDeviceIdService implements DeviceIdService {
}

@Override public void initDeviceSecurityLevels() {
if (configuration.testMode()) return;
for (Device device : deviceDAO.findAll()) {
if (device.uninitialized()) continue;
setDeviceSecurityLevel(device);
@@ -110,6 +111,7 @@ public class StandardDeviceIdService implements DeviceIdService {
}

@Override public void setDeviceSecurityLevel(Device device) {
if (configuration.testMode()) return;
for (String ip : findIpsByDevice(device.getUuid())) {
redis.set_plaintext(REDIS_KEY_DEVICE_SECURITY_LEVEL_PREFIX+ip, device.getSecurityLevel().name());
}


Loading…
取消
儲存