mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-12 11:48:07 +08:00
Update net.go
This commit is contained in:
parent
c63ffdd0ae
commit
50f01576ca
@ -145,7 +145,7 @@ func (n *network) InterfaceListenAddresses() ([]ma.Multiaddr, error) {
|
||||
}
|
||||
|
||||
// Connectedness returns a state signaling connection capabilities
|
||||
// For now only returns Connecter || NotConnected. Expand into more later.
|
||||
// For now only returns Connected || NotConnected. Expand into more later.
|
||||
func (n *network) Connectedness(p peer.Peer) Connectedness {
|
||||
c := n.swarm.ConnectionsToPeer(p)
|
||||
if c != nil && len(c) < 1 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user