Ask Bjørn Hansen 13 년 전
부모
커밋
6e4d1e505d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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]})
 			}
 		}