Archived
1
0
This commit is contained in:
Jeff Becker 2018-11-06 16:03:44 -05:00
parent 515f42c664
commit 2265b4b2ae
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -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)
@ -1153,6 +1152,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,
store: self.store, store: self.store,