forked from drew/smtprelay
Adjust remote auth disabled check syntax
This commit is contained in:
@@ -91,8 +91,7 @@ func setupRemoteAuth() {
|
|||||||
logger := log.WithField("remote_auth", *remoteAuthStr)
|
logger := log.WithField("remote_auth", *remoteAuthStr)
|
||||||
|
|
||||||
// Remote auth disabled?
|
// Remote auth disabled?
|
||||||
switch *remoteAuthStr {
|
if *remoteAuthStr == "" || *remoteAuthStr == "none" {
|
||||||
case "", "none":
|
|
||||||
if *remoteUser != "" {
|
if *remoteUser != "" {
|
||||||
logger.Fatal("remote_user given but not used")
|
logger.Fatal("remote_user given but not used")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user