pixiecore/cli: plumb other flags to API mode in v1compat.

This commit is contained in:
David Anderson 2016-08-14 19:48:39 -07:00
parent 71a7b89493
commit edb7ad89bb

View File

@ -79,9 +79,14 @@ func v1compatCLI() bool {
fatalf("Failed to create API booter: %s", err) fatalf("Failed to create API booter: %s", err)
} }
s := &pixiecore.Server{ s := &pixiecore.Server{
Booter: booter, Booter: booter,
Ipxe: Ipxe, Ipxe: Ipxe,
Log: func(msg string) { fmt.Println(msg) }, Log: func(msg string) { fmt.Println(msg) },
Address: *listenAddr,
HTTPPort: *portHTTP,
DHCPPort: *portDHCP,
TFTPPort: *portTFTP,
PXEPort: *portPXE,
} }
fmt.Println(s.Serve()) fmt.Println(s.Serve())