Skip to content

Commit

Permalink
Fix remote ping with tls on util check cmd (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelm41 committed Jan 24, 2022
1 parent 7855c80 commit 0a93691
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/drand-cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ func checkConnection(c *cli.Context) error {
if isIdentityCheck {
err = checkIdentityAddress(conf, address, !c.Bool(insecureFlag.Name), beaconID)
} else {
err = remotePingToNode(address)
err = remotePingToNode(address, !c.Bool(insecureFlag.Name))
}

if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions cmd/drand-cli/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ func pingpongCmd(c *cli.Context) error {
return nil
}

func remotePingToNode(addr string) error {
peer := net.CreatePeer(addr, false)
func remotePingToNode(addr string, tls bool) error {
peer := net.CreatePeer(addr, tls)
client := net.NewGrpcClient()

ctx, cancel := context.WithCancel(context.Background())
Expand Down

0 comments on commit 0a93691

Please sign in to comment.