Commit 795b3cc4 authored by Jeromy's avatar Jeromy

add muxer type to json output

License: MIT
Signed-off-by: default avatarJeromy <why@ipfs.io>
parent 4a029c73
...@@ -88,6 +88,11 @@ var swarmPeersCmd = &cmds.Command{ ...@@ -88,6 +88,11 @@ var swarmPeersCmd = &cmds.Command{
Peer: pid.Pretty(), Peer: pid.Pretty(),
} }
swcon, ok := c.(*swarm.Conn)
if ok {
ci.Muxer = fmt.Sprintf("%T", swcon.StreamConn().Conn())
}
if verbose || latency { if verbose || latency {
ci.Latency = n.Peerstore.LatencyEWMA(pid).String() ci.Latency = n.Peerstore.LatencyEWMA(pid).String()
} }
...@@ -147,6 +152,7 @@ type connInfo struct { ...@@ -147,6 +152,7 @@ type connInfo struct {
Addr string Addr string
Peer string Peer string
Latency string Latency string
Muxer string
Streams []streamInfo Streams []streamInfo
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment