mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00
Merge branch 'develop' into neilalexander/prio
This commit is contained in:
commit
e130957484
1 changed files with 3 additions and 0 deletions
|
@ -63,6 +63,9 @@ func (c *Core) GetPeers() []PeerInfo {
|
||||||
names := make(map[net.Conn]string)
|
names := make(map[net.Conn]string)
|
||||||
phony.Block(&c.links, func() {
|
phony.Block(&c.links, func() {
|
||||||
for _, info := range c.links._links {
|
for _, info := range c.links._links {
|
||||||
|
if info == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
names[info.conn] = info.lname
|
names[info.conn] = info.lname
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue