Browse Source

Fix totaling of weights when specified as numbers in the JSON

Ask Bjørn Hansen 13 years ago
parent
commit
1caa09d699
1 changed files with 1 additions and 0 deletions
  1. 1 0
      config.go

+ 1 - 0
config.go

@@ -228,6 +228,7 @@ func setupZoneData(data map[string]interface{}, Zone *Zone) {
 						label.Weight[dnsType] += record.Weight
 						label.Weight[dnsType] += record.Weight
 					case float64:
 					case float64:
 						record.Weight = int(rec[1].(float64))
 						record.Weight = int(rec[1].(float64))
+						label.Weight[dnsType] += record.Weight
 					}
 					}
 					switch dnsType {
 					switch dnsType {
 					case dns.TypeA:
 					case dns.TypeA: