|
|
@ -256,9 +256,10 @@ func main() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(endpoints) == 0 {
|
|
|
|
if len(endpoints) == 0 {
|
|
|
|
endpoint := &portainer.Endpoint{
|
|
|
|
endpoint := &portainer.Endpoint{
|
|
|
|
Name: "primary",
|
|
|
|
Name: "primary",
|
|
|
|
URL: *flags.Endpoint,
|
|
|
|
URL: *flags.Endpoint,
|
|
|
|
Type: portainer.DockerEnvironment,
|
|
|
|
GroupID: portainer.EndpointGroupID(1),
|
|
|
|
|
|
|
|
Type: portainer.DockerEnvironment,
|
|
|
|
TLSConfig: portainer.TLSConfiguration{
|
|
|
|
TLSConfig: portainer.TLSConfiguration{
|
|
|
|
TLS: *flags.TLSVerify,
|
|
|
|
TLS: *flags.TLSVerify,
|
|
|
|
TLSSkipVerify: *flags.TLSSkipVerify,
|
|
|
|
TLSSkipVerify: *flags.TLSSkipVerify,
|
|
|
|