mirror of
https://github.com/wiggin77/mailrelay.git
synced 2025-08-16 01:57:52 +02:00
Make correct
This commit is contained in:
@ -112,8 +112,10 @@ func handshake(client *smtp.Client, config *relayConfig, tlsConfig *tls.Config)
|
|||||||
auth = smtp.PlainAuth("", config.Username, config.Password, config.Server)
|
auth = smtp.PlainAuth("", config.Username, config.Password, config.Server)
|
||||||
}
|
}
|
||||||
|
|
||||||
if auth != nil && err := client.Auth(auth); err != nil {
|
if auth != nil {
|
||||||
return errors.Wrap(err, "auth error")
|
if err := client.Auth(auth); err != nil {
|
||||||
|
return errors.Wrap(err, "auth error")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user