mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
Ensure Fleet URL is prefixed with https
This commit is contained in:
parent
a22eb16845
commit
4bc6b8afeb
1 changed files with 2 additions and 2 deletions
|
|
@ -183,7 +183,7 @@ func main() {
|
|||
)
|
||||
}
|
||||
|
||||
if fleetURL != "" && c.Bool("insecure") {
|
||||
if fleetURL != "https://" && c.Bool("insecure") {
|
||||
proxy, err := insecure.NewTLSProxy(fleetURL)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "create TLS proxy")
|
||||
|
|
@ -231,7 +231,7 @@ func main() {
|
|||
osquery.WithFlags(osquery.FleetFlags(parsedURL)),
|
||||
osquery.WithFlags([]string{"--tls_server_certs", certPath}),
|
||||
)
|
||||
} else if fleetURL != "" {
|
||||
} else if fleetURL != "https://" {
|
||||
if enrollSecret == "" {
|
||||
return errors.New("enroll secret must be specified to connect to Fleet server")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue