From edb7ad89bb33aa6d820b27910f3ca847bba43993 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 14 Aug 2016 19:48:39 -0700 Subject: [PATCH] pixiecore/cli: plumb other flags to API mode in v1compat. --- pixiecore/cli/v1compat.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pixiecore/cli/v1compat.go b/pixiecore/cli/v1compat.go index 429af00..87fc2fc 100644 --- a/pixiecore/cli/v1compat.go +++ b/pixiecore/cli/v1compat.go @@ -79,9 +79,14 @@ func v1compatCLI() bool { fatalf("Failed to create API booter: %s", err) } s := &pixiecore.Server{ - Booter: booter, - Ipxe: Ipxe, - Log: func(msg string) { fmt.Println(msg) }, + Booter: booter, + Ipxe: Ipxe, + Log: func(msg string) { fmt.Println(msg) }, + Address: *listenAddr, + HTTPPort: *portHTTP, + DHCPPort: *portDHCP, + TFTPPort: *portTFTP, + PXEPort: *portPXE, } fmt.Println(s.Serve())