5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-09 23:20:28 +00:00

Formatting

This commit is contained in:
Neil Alexander 2018-01-21 17:53:25 +00:00
parent 483d90a728
commit 8ef852469b

View File

@ -77,9 +77,11 @@ func (a *admin) handleRequest(conn net.Conn) {
b := a.core.dht.getBucket(i)
for _, v := range b.infos {
var destPorts []switchPort
for offset := 0 ; ; {
for offset := 0; ; {
coord, length := wire_decode_uint64(v.coords[offset:])
if length == 0 { break }
if length == 0 {
break
}
destPorts = append(destPorts, switchPort(coord))
offset += length
}