Ability to add peer to config

This commit is contained in:
Tim Beatham
2023-09-19 23:50:44 +01:00
parent 6e9ca4f31f
commit dcf851a02e
10 changed files with 607 additions and 93 deletions

View File

@ -9,10 +9,10 @@ import (
* Represents a WireGuard node
*/
type MeshNode struct {
Host string
CtrlPort string
WgPort string
WgHost string
HostEndpoint string
WgEndpoint string
PublicKey string
WgHost string
}
type Mesh struct {
@ -29,4 +29,5 @@ type MeshCtrlServer struct {
Port int
Client *wgctrl.Client
Meshes map[string]Mesh
IfName string
}