mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-12-18 14:49:21 +08:00
gofmt all (#1144)
This commit is contained in:
parent
68dee3a8c5
commit
8d139d182f
29 changed files with 41 additions and 42 deletions
|
|
@ -186,7 +186,6 @@ func GetZone(args GetZoneArgs) error {
|
||||||
zoneRecs[i] = recs
|
zoneRecs[i] = recs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Write the heading:
|
// Write the heading:
|
||||||
|
|
||||||
if args.OutputFormat == "js" || args.OutputFormat == "djs" {
|
if args.OutputFormat == "js" || args.OutputFormat == "djs" {
|
||||||
|
|
|
||||||
|
|
@ -326,7 +326,7 @@ func (c *hednsProvider) GetZoneRecords(domain string) (models.Records, error) {
|
||||||
err = rc.SetTarget(data)
|
err = rc.SetTarget(data)
|
||||||
case "MX":
|
case "MX":
|
||||||
// dns.he.net omits the trailing "." on the hostnames for MX records
|
// dns.he.net omits the trailing "." on the hostnames for MX records
|
||||||
err = rc.SetTargetMX(uint16(priority), data + ".")
|
err = rc.SetTargetMX(uint16(priority), data+".")
|
||||||
case "SRV":
|
case "SRV":
|
||||||
err = rc.SetTargetSRVPriorityString(uint16(priority), data)
|
err = rc.SetTargetSRVPriorityString(uint16(priority), data)
|
||||||
case "SPF":
|
case "SPF":
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue