Skip to content

Commit

Permalink
locksmithcl/locksmithcl: fix defaultEnpoints
Browse files Browse the repository at this point in the history
Using etcd/v3, it seems we don't need to specify the scheme
(`http`/`https`).

If it's specified, it will use the ones provided by default and stick to
it - even if it's HTTP and we have a HTTPS configured etcd.

So it will fail because we send http request to a https service

Signed-off-by: Mathieu Tortuyaux <[email protected]>
  • Loading branch information
Mathieu Tortuyaux committed Aug 31, 2021
1 parent cbcacee commit bbd12cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locksmithctl/locksmithctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ var (
}{}

defaultEndpoints = []string{
"http://127.0.0.1:2379",
"http://127.0.0.1:4001",
"127.0.0.1:2379",
"127.0.0.1:4001",
}
)

Expand Down

0 comments on commit bbd12cd

Please sign in to comment.