debug admin socket

This commit is contained in:
Arceliar 2018-05-06 19:48:26 -05:00
parent 94dd231e13
commit 6ce16d8192
4 changed files with 12 additions and 13 deletions

View file

@ -397,10 +397,11 @@ func (c *Core) DEBUG_setIfceExpr(expr *regexp.Regexp) {
c.ifceExpr = expr
}
func (c *Core) DEBUG_addAuthBoxPub(boxBytes []byte) {
var box boxPubKey
copy(box[:], boxBytes)
c.peers.addAuthBoxPub(&box)
func (c *Core) DEBUG_addAuthBoxPub(boxStr string) {
err := c.admin.addAuthBoxPub(boxStr)
if err != nil {
panic(err)
}
}
////////////////////////////////////////////////////////////////////////////////