mirror of
https://github.com/danderson/netboot.git
synced 2025-08-09 16:17:11 +02:00
pixiecore/cli: plumb other flags to API mode in v1compat.
This commit is contained in:
parent
71a7b89493
commit
edb7ad89bb
@ -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())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user