more
This commit is contained in:
parent
515f42c664
commit
2265b4b2ae
@ -546,7 +546,6 @@ func (self *NNTPDaemon) MarkSpam(msgid string) {
|
|||||||
|
|
||||||
// run daemon
|
// run daemon
|
||||||
func (self *NNTPDaemon) Run() {
|
func (self *NNTPDaemon) Run() {
|
||||||
self.spamFilter.Configure(self.conf.spamconf)
|
|
||||||
self.bind_addr = self.conf.daemon["bind"]
|
self.bind_addr = self.conf.daemon["bind"]
|
||||||
|
|
||||||
listener, err := net.Listen("tcp", self.bind_addr)
|
listener, err := net.Listen("tcp", self.bind_addr)
|
||||||
@ -1152,6 +1151,8 @@ func (self *NNTPDaemon) Setup() {
|
|||||||
|
|
||||||
self.frontend = NewHTTPFrontend(self, self.cache, self.conf.frontend, self.conf.worker["url"])
|
self.frontend = NewHTTPFrontend(self, self.cache, self.conf.frontend, self.conf.worker["url"])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.spamFilter.Configure(self.conf.spamconf)
|
||||||
|
|
||||||
self.mod = &modEngine{
|
self.mod = &modEngine{
|
||||||
spam: &self.spamFilter,
|
spam: &self.spamFilter,
|
||||||
|
Reference in New Issue
Block a user