We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d7c2146 + 415543d commit 297ac54Copy full SHA for 297ac54
main.go
@@ -5,6 +5,7 @@ import (
5
"net"
6
"net/http"
7
"os"
8
+ "strconv"
9
"strings"
10
"time"
11
@@ -61,8 +62,12 @@ func (c *designateDNSProviderSolver) Present(ch *v1alpha1.ChallengeRequest) erro
61
62
63
var opts recordsets.CreateOpts
64
opts.Name = ch.ResolvedFQDN
- opts.Records = []string{ch.Key}
65
opts.Type = "TXT"
66
+ if strings.HasPrefix(ch.Key, "\"") {
67
+ opts.Records = []string{ch.Key}
68
+ } else {
69
+ opts.Records = []string{strconv.Quote(ch.Key)}
70
+ }
71
72
_, err = recordsets.Create(c.client, allZones[0].ID, opts).Extract()
73
if err != nil {
0 commit comments