fix array index bug

This commit is contained in:
Seán C McCord 2023-10-01 21:54:45 -04:00
parent 7f84a73570
commit 567ca23bb3
Signed by: scm
GPG key ID: 4AF67648FB0336A6

View file

@ -269,7 +269,7 @@ func (session *Session) validateDomain(to string) error {
}
for _, d := range session.b.AllowedDomains {
if pieces[2] == d {
if pieces[1] == d {
return nil
}
}