Allow creating domain records with a weight of 0.

This commit is contained in:
Tilen Faganel 2018-08-26 22:11:04 +01:00
parent ddc940d8ef
commit e419d0b7a8
No known key found for this signature in database
GPG Key ID: 3DDA5ABF228F8E7A
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ type DomainRecord struct {
Priority int `json:"priority"`
Port int `json:"port,omitempty"`
TTL int `json:"ttl,omitempty"`
Weight int `json:"weight,omitempty"`
Weight int `json:"weight"`
Flags int `json:"flags"`
Tag string `json:"tag,omitempty"`
}
@ -88,7 +88,7 @@ type DomainRecordEditRequest struct {
Priority int `json:"priority"`
Port int `json:"port,omitempty"`
TTL int `json:"ttl,omitempty"`
Weight int `json:"weight,omitempty"`
Weight int `json:"weight"`
Flags int `json:"flags"`
Tag string `json:"tag,omitempty"`
}