mirror of
https://github.com/decke/smtprelay.git
synced 2026-04-25 12:55:54 +03:00
[PR #11] [MERGED] Minor cleanup and fixes #58
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/smtprelay#58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/decke/smtprelay/pull/11
Author: @JonathonReinhart
Created: 2/15/2021
Status: ✅ Merged
Merged: 2/16/2021
Merged by: @decke
Base:
master← Head:minor-cleanup-fixes📝 Commits (7)
b202a22Refactor out getTLSConfig()fd3f513Don't run ListenAndServe in a goroutine4fd6bb1Refactor common code in listener setupecf8308Add helpful log messages for various error cases7fa0eebSimplify range code for setting up listeners70dfe6bOnly call AuthLoadFile() once at startup009ae8fhasher: Check number of arguments📊 Changes
2 files changed (+65 additions, -65 deletions)
View changed files
📝
cmd/hasher.go(+5 -1)📝
main.go(+60 -64)📄 Description
This PR makes some minor cleanup and fixes:
main()to DRY up redundant code, and make it a little easier to readListenAndServein a go routine -- This fixes #10hasher(don't segfault when password arg is missing)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.