-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
There is no catch in case the user types the wrong command. It is exemplified is the code below however it can be found throughout the switch statement in the function
freechains.kt/src/main/kotlin/org/freechains/host/Daemon.kt
Lines 208 to 220 in 42e50b4
| "keys" -> when (cmds[1]) { | |
| "shared" -> { | |
| val pass = reader.readLineX() | |
| writer.writeLineX(pass.toShared()) | |
| } | |
| "pubpvt" -> { | |
| val pass = reader.readLineX() | |
| val keys = pass.toPubPvt() | |
| writer.writeLineX( | |
| keys.publicKey.asHexString + ' ' + | |
| keys.secretKey.asHexString | |
| ) | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels