fix previous commit
This commit is contained in:
parent
ab37624a7a
commit
b634fa2665
@ -1365,8 +1365,8 @@ func (self *nntpConnection) scrapeServer(daemon *NNTPDaemon, conn *textproto.Con
|
|||||||
err = conn.PrintfLine("LIST NEWSGROUPS")
|
err = conn.PrintfLine("LIST NEWSGROUPS")
|
||||||
if err == nil {
|
if err == nil {
|
||||||
// read response line
|
// read response line
|
||||||
code, _, err := conn.ReadCodeLine(231)
|
code, _, err := conn.ReadCodeLine(0)
|
||||||
if code == 231 {
|
if code == 231 || code == 215 {
|
||||||
var groups []string
|
var groups []string
|
||||||
// valid response, we expect a multiline
|
// valid response, we expect a multiline
|
||||||
dr := conn.DotReader()
|
dr := conn.DotReader()
|
||||||
|
Reference in New Issue
Block a user