fix array index bug
This commit is contained in:
parent
7f84a73570
commit
567ca23bb3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue