2
0
forked from drew/smtprelay

Add localAuthRequired() helper function

This just makes the configuration state a little more obvious.
This commit is contained in:
Jonathon Reinhart
2021-03-31 22:37:02 -04:00
parent ca1ccd85e3
commit 45a676e274
2 changed files with 7 additions and 3 deletions

View File

@@ -43,6 +43,10 @@ var (
versionInfo = flag.Bool("version", false, "Show version information")
)
func localAuthRequired() bool {
return *allowedUsers != ""
}
func setupAllowedNetworks() {
for _, netstr := range splitstr(*allowedNetsStr, ' ') {