make inbound nntp check feed policy
This commit is contained in:
parent
9e291b1c5a
commit
fbafc56b4c
@ -439,6 +439,9 @@ func (self *nntpConnection) checkMIMEHeaderNoAuth(daemon *NNTPDaemon, hdr textpr
|
|||||||
reason = "poster's pubkey is banned"
|
reason = "poster's pubkey is banned"
|
||||||
ban = true
|
ban = true
|
||||||
return
|
return
|
||||||
|
} else if !self.policy.AllowsNewsgroup(newsgroup) {
|
||||||
|
reason = "newsground not allowed by feed policy"
|
||||||
|
ban = true
|
||||||
} else if !(ValidMessageID(msgid) || (reference != "" && !ValidMessageID(reference))) {
|
} else if !(ValidMessageID(msgid) || (reference != "" && !ValidMessageID(reference))) {
|
||||||
// invalid message id or reference
|
// invalid message id or reference
|
||||||
reason = "invalid reference or message id is '" + msgid + "' reference is '" + reference + "'"
|
reason = "invalid reference or message id is '" + msgid + "' reference is '" + reference + "'"
|
||||||
|
Reference in New Issue
Block a user