mirror of
https://github.com/PeernetOfficial/Cmd.git
synced 2026-07-19 03:47:50 +01:00
Update module.
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user