mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-13 12:56:29 +00:00
debug admin socket
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user