forked from TrueCloudLab/lego
ovh: fix int overflow. (#972)
This commit is contained in:
parent
6a8aae1694
commit
e225f8d334
1 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ import (
|
||||||
|
|
||||||
// Record a DNS record
|
// Record a DNS record
|
||||||
type Record struct {
|
type Record struct {
|
||||||
ID int `json:"id,omitempty"`
|
ID int64 `json:"id,omitempty"`
|
||||||
FieldType string `json:"fieldType,omitempty"`
|
FieldType string `json:"fieldType,omitempty"`
|
||||||
SubDomain string `json:"subDomain,omitempty"`
|
SubDomain string `json:"subDomain,omitempty"`
|
||||||
Target string `json:"target,omitempty"`
|
Target string `json:"target,omitempty"`
|
||||||
|
@ -56,7 +56,7 @@ func NewDefaultConfig() *Config {
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
client *ovh.Client
|
client *ovh.Client
|
||||||
recordIDs map[string]int
|
recordIDs map[string]int64
|
||||||
recordIDsMu sync.Mutex
|
recordIDsMu sync.Mutex
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
|
||||||
return &DNSProvider{
|
return &DNSProvider{
|
||||||
config: config,
|
config: config,
|
||||||
client: client,
|
client: client,
|
||||||
recordIDs: make(map[string]int),
|
recordIDs: make(map[string]int64),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue