diff --git a/src/yggdrasil/admin.go b/src/yggdrasil/admin.go index fc95e23f..ddb02818 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 {