add frontend key based blocking (initial)
This commit is contained in:
@@ -89,6 +89,7 @@ type NNTPMessage interface {
|
||||
OP() bool
|
||||
// all attachments
|
||||
Attachments() []NNTPAttachment
|
||||
FrontendPubkey() string
|
||||
// all headers
|
||||
Headers() ArticleHeaders
|
||||
MIMEHeader() textproto.MIMEHeader
|
||||
@@ -112,6 +113,10 @@ type NNTPMessage interface {
|
||||
BodyReader() io.Reader
|
||||
}
|
||||
|
||||
func (self *nntpArticle) FrontendPubkey() string {
|
||||
return self.headers.Get("X-Frontend-Pubkey", "")
|
||||
}
|
||||
|
||||
type nntpArticle struct {
|
||||
// mime header
|
||||
headers ArticleHeaders
|
||||
|
||||
Reference in New Issue
Block a user