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

@ -377,7 +377,7 @@ func (a *admin) getAuthBoxPubs() string {
func (a *admin) addAuthBoxPub(bstr string) (err error) {
boxBytes, err := hex.DecodeString(bstr)
if err != nil {
if err == nil {
var box boxPubKey
copy(box[:], boxBytes)
a.core.peers.addAuthBoxPub(&box)
@ -387,7 +387,7 @@ func (a *admin) addAuthBoxPub(bstr string) (err error) {
func (a *admin) removeAuthBoxPub(bstr string) (err error) {
boxBytes, err := hex.DecodeString(bstr)
if err != nil {
if err == nil {
var box boxPubKey
copy(box[:], boxBytes)
a.core.peers.removeAuthBoxPub(&box)