2
0
forked from drew/smtprelay

Fix whitespace

This commit is contained in:
Bernhard Froehlich
2018-12-20 11:11:28 +00:00
parent a5f3c2bd3f
commit 6427f0ec23

View File

@@ -43,9 +43,9 @@ func connectionChecker(peer smtpd.Peer) error {
return smtpd.Error{Code: 552, Message: "Denied"} return smtpd.Error{Code: 552, Message: "Denied"}
} }
nets := strings.Split(*allowedNets, " ") nets := strings.Split(*allowedNets, " ")
for i := range(nets) { for i := range(nets) {
_, allowedNet, _ := net.ParseCIDR(nets[i]) _, allowedNet, _ := net.ParseCIDR(nets[i])
if allowedNet.Contains(peerIP) { if allowedNet.Contains(peerIP) {