IPv6 What 8 Words

what 8 words for ipv6 started
This commit is contained in:
Tim Beatham 2023-11-20 15:22:32 +00:00
parent 3e5b57e41f
commit 330fa74ef4
4 changed files with 7 additions and 3 deletions

View File

@ -13,5 +13,5 @@ func main() {
log.Fatal(err.Error())
}
apiServer.Run(":40000")
apiServer.Run(":8080")
}

View File

@ -18,11 +18,11 @@ type SmegMesh struct {
}
type CreateMeshRequest struct {
WgPort int `json:"port" binding:"gte=1024,lt=65535"`
WgPort int `json:"port" binding:"omitempty,gte=1024,lt=65535"`
}
type JoinMeshRequest struct {
WgPort int `json:"port" binding:"gte=1024,lt=65535"`
WgPort int `json:"port" binding:"omitempty,gte=1024,lt=65535"`
Bootstrap string `json:"bootstrap" binding:"required"`
MeshId string `json:"meshid" binding:"required"`
}

View File

@ -53,6 +53,8 @@ type WgMeshConfiguration struct {
Profile bool `yaml:"profile"`
// StubWg whether or not to stub the WireGuard types
StubWg bool `yaml:"stubWg"`
// What8Words file path for the what 8 words word list.
What8Words string `yaml:"what8Words"`
}
func ValidateConfiguration(c *WgMeshConfiguration) error {

View File

@ -0,0 +1,2 @@
// Package to convert an IPV6 addres into 8 words
package what8words