mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2024-12-12 17:41:08 +01:00
dbc18bddc6
- Performing DAD to check if IPv6 address present before adding outselves to mesh - Changing name from wgmesh to smegmesh
20 lines
260 B
Go
20 lines
260 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/tim-beatham/smegmesh/pkg/api"
|
|
)
|
|
|
|
func main() {
|
|
apiServer, err := api.NewSmegServer(api.ApiServerConf{
|
|
WordsFile: "./cmd/api/words.txt",
|
|
})
|
|
|
|
if err != nil {
|
|
log.Fatal(err.Error())
|
|
}
|
|
|
|
apiServer.Run(":8080")
|
|
}
|