Update module.

This commit is contained in:
Kleissner
2021-04-21 03:33:30 +02:00
parent cf50cef233
commit 63bae10cd2
3 changed files with 14 additions and 13 deletions

View File

@@ -221,10 +221,11 @@ func userCommands() {
case "dht get":
if hash, valid := getUserOptionHash(reader); valid {
data, found := core.GetDataDHT(hash)
data, sender, found := core.GetDataDHT(hash)
if !found {
fmt.Printf("Not found.\n")
} else {
fmt.Printf("\nSender: %s\n", hex.EncodeToString(sender))
fmt.Printf("Data hex: %s\n", hex.EncodeToString(data))
fmt.Printf("Data string: %s\n", string(data))
}