feat: return device type on nodeinfo
This commit is contained in:
parent
4c6e251247
commit
11340e4d7a
@ -32,6 +32,7 @@ func HandleGetNodeInfo(wgLink *WGLink) http.HandlerFunc {
|
||||
PublicKey: dev.PublicKey.String(),
|
||||
UDPPort: dev.ListenPort,
|
||||
Endpoint: wgLink.Endpoint,
|
||||
Type: dev.Type.String(),
|
||||
// TODO: Send endpoint for clients to connect
|
||||
},
|
||||
)
|
||||
|
@ -4,4 +4,5 @@ type NodePublicInfo struct {
|
||||
PublicKey string `json:"public_key"`
|
||||
UDPPort int `json:"udp_port"`
|
||||
Endpoint string `json:"endpoint"`
|
||||
Type string
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user