From 3a1b67da8c41b8afbdb5d7771a4fcdad84393a55 Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sat, 5 May 2018 20:20:38 -0500 Subject: [PATCH] Update admin.go --- src/yggdrasil/admin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yggdrasil/admin.go b/src/yggdrasil/admin.go index fc95e23..ddb0281 100644 --- a/src/yggdrasil/admin.go +++ b/src/yggdrasil/admin.go @@ -58,7 +58,7 @@ func (a *admin) init(c *Core, listenaddr string) { a.addHandler("getSessions", nil, func(out *[]byte, _ ...string) { *out = []byte(a.printInfos(a.getData_getSessions())) }) - a.addHandler("addPeer", []string{""}, func(out *[]byte, saddr ...string) { + a.addHandler("addPeer", []string{""}, func(out *[]byte, saddr ...string) { if a.addPeer(saddr[0]) == nil { *out = []byte("Adding peer: " + saddr[0] + "\n") } else {