diff --git a/src/yggdrasil/api.go b/src/yggdrasil/api.go index 7270bc2e..1bec9836 100644 --- a/src/yggdrasil/api.go +++ b/src/yggdrasil/api.go @@ -213,7 +213,7 @@ func (c *Core) GetSessions() []Session { for _, sinfo := range c.sessions.sinfos { var session Session workerFunc := func() { - session := Session{ + session = Session{ Coords: append([]byte{}, sinfo.coords...), MTU: sinfo.getMTU(), BytesSent: sinfo.bytesSent,