mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
update cloudns to support request from subuser (sub-auth-id) (#993)
* update cloudns to support request from subuser (sub-auth-id) * formats Go source code with Gofmt Co-authored-by: bjad <jamal@pfalzcloud.de>
This commit is contained in:
@@ -15,6 +15,7 @@ type cloudnsProvider struct {
|
||||
creds struct {
|
||||
id string
|
||||
password string
|
||||
subid string
|
||||
}
|
||||
}
|
||||
|
||||
@@ -195,6 +196,7 @@ func (c *cloudnsProvider) get(endpoint string, params requestParams) ([]byte, er
|
||||
// Add auth params
|
||||
q.Add("auth-id", c.creds.id)
|
||||
q.Add("auth-password", c.creds.password)
|
||||
q.Add("sub-auth-id", c.creds.subid)
|
||||
|
||||
for pName, pValue := range params {
|
||||
q.Add(pName, pValue)
|
||||
|
||||
Reference in New Issue
Block a user