kdhcp/cmd/kdhcpd/main.go

20 lines
284 B
Go
Raw Normal View History

2023-04-22 08:25:13 +00:00
package main
import (
"flag"
"log"
"git.wntrmute.dev/kyle/kdhcp/server"
)
func main() {
cfg := &server.Config{}
flag.StringVar(&cfg.Device, "i", "eth0", "network `interface` to listen on")
flag.Parse()
_, err := server.NewServer(cfg)
if err != nil {
log.Fatal(err)
}
}