Skip to content

Commit b8246ba

Browse files
committed
Add CLI option.
1 parent c456734 commit b8246ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/root.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,10 @@ func init() {
380380
if err := viper.BindPFlag("consensus-connection", RootCmd.PersistentFlags().Lookup("consensus-connection")); err != nil {
381381
panic(err)
382382
}
383+
RootCmd.PersistentFlags().Bool("allow-insecure-connections", false, "allow insecure connections to remote beacon nodes")
384+
if err := viper.BindPFlag("allow-insecure-connections", RootCmd.PersistentFlags().Lookup("allow-insecure-connections")); err != nil {
385+
panic(err)
386+
}
383387
}
384388

385389
// initConfig reads in config file and ENV variables if set.

0 commit comments

Comments
 (0)