mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 07:05:06 +03:00
Fixed #884
This commit is contained in:
parent
74910f96da
commit
82dd30ee5c
61 changed files with 2197 additions and 2030 deletions
12
src/admin/addpeer.go
Normal file
12
src/admin/addpeer.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package admin
|
||||
|
||||
type AddPeerRequest struct {
|
||||
Uri string `json:"uri"`
|
||||
Sintf string `json:"interface,omitempty"`
|
||||
}
|
||||
|
||||
type AddPeerResponse struct{}
|
||||
|
||||
func (a *AdminSocket) addPeerHandler(req *AddPeerRequest, res *AddPeerResponse) error {
|
||||
return a.core.AddPeer(req.Uri, req.Sintf)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue