We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2698c29 + 6ad4a85 commit 64eb7f8Copy full SHA for 64eb7f8
1 file changed
spf_packer.go
@@ -47,6 +47,12 @@ func (c *PowerDNSClient) setConfiguration(cfg PdnsConfig) {
47
c.tls_config = tls.Config{
48
ServerName: "localhost",
49
}
50
+ cert, err := tls.LoadX509KeyPair(cfg.Client_cert, cfg.Client_key)
51
+ if err == nil {
52
+ c.tls_config.Certificates = []tls.Certificate{cert}
53
+ } else {
54
+ log.Println(err)
55
+ }
56
c.transport = &http.Transport{
57
MaxIdleConns: 10,
58
IdleConnTimeout: 30 * time.Second,
0 commit comments