mirror of
https://github.com/foomo/posh-providers.git
synced 2025-10-16 12:35:41 +00:00
Merge pull request #136 from foomo/fix-decode-string
fix(cloudflare/cloudflared): fix decode string
This commit is contained in:
commit
38a87b84ae
@ -138,6 +138,10 @@ func NewCommand(l log.Logger, cloudflared *Cloudflared, opts ...CommandOption) (
|
|||||||
{
|
{
|
||||||
Name: "dns",
|
Name: "dns",
|
||||||
Description: "HostnameRoute a hostname by creating a DNS CNAME record to a tunnel",
|
Description: "HostnameRoute a hostname by creating a DNS CNAME record to a tunnel",
|
||||||
|
Flags: func(ctx context.Context, r *readline.Readline, fs *readline.FlagSets) error {
|
||||||
|
fs.Default().Bool("overwrite-dns", false, "Overwrites existing DNS records")
|
||||||
|
return nil
|
||||||
|
},
|
||||||
Args: tree.Args{
|
Args: tree.Args{
|
||||||
{
|
{
|
||||||
Name: "tunnel",
|
Name: "tunnel",
|
||||||
@ -274,8 +278,8 @@ func (c *Command) tunnelCreate(ctx context.Context, r *readline.Readline) error
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
var outDec []byte
|
outDec, err := base64.StdEncoding.DecodeString(string(out))
|
||||||
if _, err := base64.StdEncoding.Decode(outDec, out); err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user