add remote debugGetSelf and fix some return type things in the other debug functions

This commit is contained in:
Arceliar 2021-05-22 21:27:11 -05:00
parent c7b004d36f
commit 233cf0c962
2 changed files with 73 additions and 5 deletions

View file

@ -35,6 +35,7 @@ func (t *TunAdapter) SetupAdminHandlers(a *admin.AdminSocket) {
return res, nil
})
_ = a.AddHandler("getNodeInfo", []string{"key"}, t.nodeinfo.nodeInfoAdminHandler)
_ = a.AddHandler("debugGetSelf", []string{"key"}, t.debug.getSelfHandler)
_ = a.AddHandler("debugGetPeers", []string{"key"}, t.debug.getPeersHandler)
_ = a.AddHandler("debugGetDHT", []string{"key"}, t.debug.getDHTHandler)
}