forked from extern/smegmesh
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")
|
|
}
|