mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2025-01-06 13:28:49 +01:00
IPv6 What 8 Words
what 8 words for ipv6 started
This commit is contained in:
parent
3e5b57e41f
commit
330fa74ef4
@ -13,5 +13,5 @@ func main() {
|
||||
log.Fatal(err.Error())
|
||||
}
|
||||
|
||||
apiServer.Run(":40000")
|
||||
apiServer.Run(":8080")
|
||||
}
|
||||
|
@ -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"`
|
||||
}
|
||||
|
@ -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 {
|
||||
|
2
pkg/what8words/what8words.go
Normal file
2
pkg/what8words/what8words.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package to convert an IPV6 addres into 8 words
|
||||
package what8words
|
Loading…
Reference in New Issue
Block a user