Skip to content

Commit 0d68e63

Browse files
Formatted files with goimports
1 parent c29208c commit 0d68e63

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

internal/check/dnsbl/common.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func matchResponseRules(addrs []net.IPAddr, rules []ResponseRule) (score int, me
133133
if matchedRules[ruleIdx] {
134134
continue
135135
}
136-
136+
137137
for _, respNet := range rule.Networks {
138138
if respNet.Contains(addr.IP) {
139139
score += rule.Score
@@ -187,12 +187,12 @@ func checkIP(ctx context.Context, resolver dns.Resolver, cfg List, ip net.IP) er
187187
return nil
188188
}
189189
score = matchedScore
190-
190+
191191
// Use first matched message if available
192192
if len(matchedMessages) > 0 {
193193
customMessage = matchedMessages[0]
194194
}
195-
195+
196196
// Build filteredAddrs from matched reasons for TXT lookup fallback
197197
for _, reason := range matchedReasons {
198198
filteredAddrs = append(filteredAddrs, net.IPAddr{IP: net.ParseIP(reason)})

internal/check/dnsbl/dnsbl.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,14 @@ func (bl *DNSBL) checkLists(ctx context.Context, ip net.IP, ehlo, mailFrom strin
373373
defer lck.Unlock()
374374
listedOn = append(listedOn, listErr.List)
375375
reasons = append(reasons, listErr.Reason)
376-
376+
377377
// Use score from ListedErr if set (new behavior), otherwise use legacy ScoreAdj
378378
if listErr.Score != 0 {
379379
score += listErr.Score
380380
} else {
381381
score += list.ScoreAdj
382382
}
383-
383+
384384
// Collect custom messages if available
385385
if listErr.Message != "" {
386386
messages = append(messages, listErr.Message)

internal/check/dnsbl/dnsbl_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,4 +490,3 @@ func TestCheckListsWithResponseRules(t *testing.T) {
490490
},
491491
}, net.IPv4(1, 2, 3, 4), "mx.example.com", "foo@example.com", false, true) // 5 + 3 = 8, quarantine but not reject
492492
}
493-

0 commit comments

Comments
 (0)