mirror of
https://github.com/danderson/netboot.git
synced 2025-12-16 15:02:12 +01:00
Rename X86_HTTP_CLIENT to appease golint.
This commit is contained in:
parent
7de0228ec0
commit
1404193a39
@ -10,7 +10,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const X86_HTTP_CLIENT = 0x10
|
const x86HTTPClient = 0x10
|
||||||
|
|
||||||
// StaticBootConfiguration provides values for dhcp options that remain unchanged until restart
|
// StaticBootConfiguration provides values for dhcp options that remain unchanged until restart
|
||||||
type StaticBootConfiguration struct {
|
type StaticBootConfiguration struct {
|
||||||
@ -35,7 +35,7 @@ func MakeStaticBootConfiguration(httpBootURL, ipxeBootURL string, preference uin
|
|||||||
|
|
||||||
// GetBootURL returns Boot File URL, see RFC 5970
|
// GetBootURL returns Boot File URL, see RFC 5970
|
||||||
func (bc *StaticBootConfiguration) GetBootURL(id []byte, clientArchType uint16) ([]byte, error) {
|
func (bc *StaticBootConfiguration) GetBootURL(id []byte, clientArchType uint16) ([]byte, error) {
|
||||||
if clientArchType == X86_HTTP_CLIENT {
|
if clientArchType == x86HTTPClient {
|
||||||
return bc.HTTPBootURL, nil
|
return bc.HTTPBootURL, nil
|
||||||
}
|
}
|
||||||
return bc.IPxeBootURL, nil
|
return bc.IPxeBootURL, nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user