Skip to content

Commit

Permalink
add insecureTLS
Browse files Browse the repository at this point in the history
  • Loading branch information
jingweicb committed Nov 21, 2023
1 parent f89aae3 commit 0d2756a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/check_construction.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func runCheckConstructionCmd(_ *cobra.Command, _ []string) error {
fetcher.WithTimeout(time.Duration(Config.HTTPTimeout) * time.Second),
fetcher.WithMaxRetries(Config.MaxRetries),
fetcher.WithMetaData(metadata),
fetcher.WithInsecureTLS(),
}
if Config.ForceRetry {
fetcherOpts = append(fetcherOpts, fetcher.WithForceRetry())
Expand Down
1 change: 1 addition & 0 deletions cmd/check_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func runCheckDataCmd(_ *cobra.Command, _ []string) error {
fetcher.WithTimeout(time.Duration(Config.HTTPTimeout) * time.Second),
fetcher.WithMaxRetries(Config.MaxRetries),
fetcher.WithMetaData(metadata),
fetcher.WithInsecureTLS(),
}
if Config.ForceRetry {
fetcherOpts = append(fetcherOpts, fetcher.WithForceRetry())
Expand Down
1 change: 1 addition & 0 deletions cmd/view_balance.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func runViewBalanceCmd(cmd *cobra.Command, args []string) error {
fetcher.WithRetryElapsedTime(time.Duration(Config.RetryElapsedTime) * time.Second),
fetcher.WithTimeout(time.Duration(Config.HTTPTimeout) * time.Second),
fetcher.WithMaxRetries(Config.MaxRetries),
fetcher.WithInsecureTLS(),
}
if Config.ForceRetry {
fetcherOpts = append(fetcherOpts, fetcher.WithForceRetry())
Expand Down
1 change: 1 addition & 0 deletions cmd/view_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func runViewBlockCmd(_ *cobra.Command, args []string) error {
fetcher.WithRetryElapsedTime(time.Duration(Config.RetryElapsedTime) * time.Second),
fetcher.WithTimeout(time.Duration(Config.HTTPTimeout) * time.Second),
fetcher.WithMaxRetries(Config.MaxRetries),
fetcher.WithInsecureTLS(),
}
if Config.ForceRetry {
fetcherOpts = append(fetcherOpts, fetcher.WithForceRetry())
Expand Down
1 change: 1 addition & 0 deletions cmd/view_networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func runViewNetworksCmd(cmd *cobra.Command, args []string) error {
fetcher.WithRetryElapsedTime(time.Duration(Config.RetryElapsedTime) * time.Second),
fetcher.WithTimeout(time.Duration(Config.HTTPTimeout) * time.Second),
fetcher.WithMaxRetries(Config.MaxRetries),
fetcher.WithInsecureTLS(),
}
if Config.ForceRetry {
fetcherOpts = append(fetcherOpts, fetcher.WithForceRetry())
Expand Down
1 change: 1 addition & 0 deletions pkg/tester/construction.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ func InitializeConstruction(
fetcher.WithTimeout(time.Duration(config.HTTPTimeout) * time.Second),
fetcher.WithMaxRetries(config.MaxRetries),
fetcher.WithMetaData(constructionMetadata),
fetcher.WithInsecureTLS(),
}
if config.Construction.ForceRetry {
fetcherOpts = append(fetcherOpts, fetcher.WithForceRetry())
Expand Down

0 comments on commit 0d2756a

Please sign in to comment.