Fix indentation/spacing in comments to render correctly in godoc
This commit is contained in:
@@ -36,8 +36,7 @@ const (
|
||||
|
||||
// New creates Prober that will skip TLS verification while probing.
|
||||
// followNonLocalRedirects configures whether the prober should follow redirects to a different hostname.
|
||||
//
|
||||
// If disabled, redirects to other hosts will trigger a warning result.
|
||||
// If disabled, redirects to other hosts will trigger a warning result.
|
||||
func New(followNonLocalRedirects bool) Prober {
|
||||
tlsConfig := &tls.Config{InsecureSkipVerify: true}
|
||||
return NewWithTLSConfig(tlsConfig, followNonLocalRedirects)
|
||||
@@ -45,8 +44,7 @@ func New(followNonLocalRedirects bool) Prober {
|
||||
|
||||
// NewWithTLSConfig takes tls config as parameter.
|
||||
// followNonLocalRedirects configures whether the prober should follow redirects to a different hostname.
|
||||
//
|
||||
// If disabled, redirects to other hosts will trigger a warning result.
|
||||
// If disabled, redirects to other hosts will trigger a warning result.
|
||||
func NewWithTLSConfig(config *tls.Config, followNonLocalRedirects bool) Prober {
|
||||
// We do not want the probe use node's local proxy set.
|
||||
transport := utilnet.SetTransportDefaults(
|
||||
|
Reference in New Issue
Block a user