remove duplicated key strings, now uses common fields
This commit is contained in:
parent
61a7c3ae64
commit
47e202901a
@ -71,8 +71,8 @@ class PropertyStore(val dbFile: File, val logger: KLogger): GenericStore {
|
|||||||
val value = it.value as String
|
val value = it.value as String
|
||||||
|
|
||||||
when (key) {
|
when (key) {
|
||||||
"_salt" -> loadedProps["_salt"] = Sys.hexToBytes(value)
|
SettingsStore.saltKey -> loadedProps[SettingsStore.saltKey] = Sys.hexToBytes(value)
|
||||||
"_private" -> loadedProps["_private"] = Sys.hexToBytes(value)
|
SettingsStore.privateKey -> loadedProps[SettingsStore.privateKey] = Sys.hexToBytes(value)
|
||||||
else -> {
|
else -> {
|
||||||
val address: InetAddress? = IP.fromString(key)
|
val address: InetAddress? = IP.fromString(key)
|
||||||
if (address != null) {
|
if (address != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user