mirror of
https://github.com/wealdtech/ethdo.git
synced 2026-01-08 21:48:05 -05:00
Clarify use of --connection.
This commit is contained in:
@@ -32,6 +32,9 @@ func ConnectToBeaconNode(ctx context.Context, address string, timeout time.Durat
|
||||
return nil, errors.New("no timeout specified")
|
||||
}
|
||||
|
||||
if !strings.HasPrefix(address, "http") {
|
||||
address = fmt.Sprintf("http://%s", address)
|
||||
}
|
||||
if !allowInsecure {
|
||||
// Ensure the connection is either secure or local.
|
||||
connectionURL, err := url.Parse(address)
|
||||
|
||||
Reference in New Issue
Block a user