Skip to content

Commit 89f6817

Browse files
authored
Merge pull request #26 from paukstis/slowFactor_senderscore_0
slowFactor include SenderScore 0
2 parents bd8e8d9 + b8e0d88 commit 89f6817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filter-senderscore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func getSession(sessionId string) *session {
153153
func filterConnect(phase string, sessionId string, params []string) {
154154
s := getSession(sessionId)
155155

156-
if *slowFactor > 0 && s.score > 0 {
156+
if *slowFactor > 0 && s.score >= 0 {
157157
s.delay = *slowFactor * (100 - int(s.score)) / 100
158158
} else {
159159
// no slow factor or neutral IP address

0 commit comments

Comments
 (0)