fix embarrasing bug in checking if string is ascii

result reversed

for issue #179 and issue #157
This commit is contained in:
Mechiel Lukkien 2024-10-04 20:05:28 +02:00
parent edb6e8d15c
commit 81c179bb4c
No known key found for this signature in database

View file

@ -698,8 +698,8 @@ func analyze(ctx context.Context, log mlog.Log, resolver dns.Resolver, d deliver
func isASCII(s string) bool { func isASCII(s string) bool {
for _, b := range []byte(s) { for _, b := range []byte(s) {
if b >= 0x80 { if b >= 0x80 {
return true return false
} }
} }
return false return true
} }