From fbe44ea97377fca5f8d5af7495b257e1abd954fa Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sat, 29 Jun 2019 19:25:34 -0500 Subject: [PATCH] fix bug in session api code --- src/yggdrasil/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yggdrasil/api.go b/src/yggdrasil/api.go index 7270bc2..1bec983 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,