Sfoglia il codice sorgente

disable security level initialization when configuration.testMode is true

tags/v0.12.4
Jonathan Cobb 4 anni fa
parent
commit
142c208394
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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 Vedi File

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


Caricamento…
Annulla
Salva