mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-27 12:05:23 +00:00
Merge branch 'develop' into v044
This commit is contained in:
commit
96ba6f0fd9
@ -300,7 +300,7 @@ func handleGetSelf(res map[string]interface{}, verbose bool) {
|
|||||||
if boxSigKey, ok := v.(map[string]interface{})["key"].(string); ok {
|
if boxSigKey, ok := v.(map[string]interface{})["key"].(string); ok {
|
||||||
fmt.Println("Public key:", boxSigKey)
|
fmt.Println("Public key:", boxSigKey)
|
||||||
}
|
}
|
||||||
if coords, ok := v.(map[string]interface{})["coords"].(string); ok {
|
if coords, ok := v.(map[string]interface{})["coords"].([]interface{}); ok {
|
||||||
fmt.Println("Coords:", coords)
|
fmt.Println("Coords:", coords)
|
||||||
}
|
}
|
||||||
if verbose {
|
if verbose {
|
||||||
|
@ -65,10 +65,16 @@ func (p *protoHandler) handleProto(from phony.Actor, key keyArray, bs []byte) {
|
|||||||
case typeProtoNodeInfoResponse:
|
case typeProtoNodeInfoResponse:
|
||||||
p.nodeinfo.handleRes(p, key, bs[1:])
|
p.nodeinfo.handleRes(p, key, bs[1:])
|
||||||
case typeProtoDebug:
|
case typeProtoDebug:
|
||||||
p._handleDebug(key, bs[1:])
|
p.handleDebug(from, key, bs[1:])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (p *protoHandler) handleDebug(from phony.Actor, key keyArray, bs []byte) {
|
||||||
|
p.Act(from, func() {
|
||||||
|
p._handleDebug(key, bs)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
func (p *protoHandler) _handleDebug(key keyArray, bs []byte) {
|
func (p *protoHandler) _handleDebug(key keyArray, bs []byte) {
|
||||||
if len(bs) == 0 {
|
if len(bs) == 0 {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user