remove duplicated key strings, now uses common fields

This commit is contained in:
Robinson 2021-01-15 02:18:14 +01:00
parent 61a7c3ae64
commit 47e202901a

View File

@ -71,8 +71,8 @@ class PropertyStore(val dbFile: File, val logger: KLogger): GenericStore {
val value = it.value as String
when (key) {
"_salt" -> loadedProps["_salt"] = Sys.hexToBytes(value)
"_private" -> loadedProps["_private"] = Sys.hexToBytes(value)
SettingsStore.saltKey -> loadedProps[SettingsStore.saltKey] = Sys.hexToBytes(value)
SettingsStore.privateKey -> loadedProps[SettingsStore.privateKey] = Sys.hexToBytes(value)
else -> {
val address: InetAddress? = IP.fromString(key)
if (address != null) {