Ask Bjørn Hansen 13 years ago
parent
commit
6e4d1e505d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      geodns.go

+ 1 - 1
geodns.go

@@ -296,7 +296,7 @@ func setupZoneData(data map[string]interface{}, Zone *Zone) {
 
 				label.Records[dnsType][i] = *record
 			}
-			if label.Weight > 0 {
+			if label.Weight[dnsType] > 0 {
 				sort.Sort(RecordsByWeight{label.Records[dnsType]})
 			}
 		}