Skip to content

Commit a90af91

Browse files
committed
auth/ldap, check/rspamd: Fix tls_client directive definition
See #824.
1 parent 24ec801 commit a90af91

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/auth/ldap/ldap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type Auth struct {
2525
urls []string
2626
readBind func(*ldap.Conn) error
2727
startls bool
28-
tlsCfg tls.Config
28+
tlsCfg *tls.Config
2929
dialer *net.Dialer
3030
requestTimeout time.Duration
3131

internal/check/rspamd/rspamd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (c *Check) Configure(inlineArgs []string, cfg *config.Map) error {
9292
}
9393

9494
var (
95-
tlsConfig tls.Config
95+
tlsConfig *tls.Config
9696
flags []string
9797
)
9898

@@ -135,7 +135,7 @@ func (c *Check) Configure(inlineArgs []string, cfg *config.Map) error {
135135

136136
c.client = &http.Client{
137137
Transport: &http.Transport{
138-
TLSClientConfig: &tlsConfig,
138+
TLSClientConfig: tlsConfig,
139139
},
140140
}
141141
c.flags = strings.Join(flags, ",")

0 commit comments

Comments
 (0)