Initial import.

This commit is contained in:
2023-04-22 01:25:13 -07:00
commit f3fc03392a
6 changed files with 138 additions and 0 deletions

19
cmd/kdhcpd/main.go Normal file
View File

@@ -0,0 +1,19 @@
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)
}
}