mirror of
https://github.com/decke/smtprelay.git
synced 2026-04-25 04:45:52 +03:00
[PR #18] [MERGED] Allow any network and related enhancements #61
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#61
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/18
Author: @JonathonReinhart
Created: 3/13/2021
Status: ✅ Merged
Merged: 3/14/2021
Merged by: @JonathonReinhart
Base:
master← Head:allow-any-net📝 Commits (4)
4036213Simplify peerIP determination in connectionChecker()ef3f9c8Move parsing of "allowed_nets" out to ConfigLoad()0503c12Allow "allowed_nets" to be empty, meaning any network is allowed918df65Require that networks in allowed_nets are networks and not hosts📊 Changes
3 files changed (+38 additions, -14 deletions)
View changed files
📝
config.go(+29 -1)📝
main.go(+7 -12)📝
smtprelay.ini(+2 -1)📄 Description
This PR allows the
allowed_netsconfig option to be an empty string which means "any network", without having to enter0.0.0.0/0 ::/0.It also re-works the way
allowed_netsis parsed to make several improvements:This PR is a result of discussions on #13 and is inspired by grafana#4.
Follows #15.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.