Skip to content

Commit

Permalink
Add SIZE extension when MaxMessageBytes not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Шипицын Анатолий authored and emersion committed Feb 19, 2021
1 parent cf69633 commit ca8725c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ func (c *Conn) handleGreet(enhanced bool, arg string) {
}
if c.server.MaxMessageBytes > 0 {
caps = append(caps, fmt.Sprintf("SIZE %v", c.server.MaxMessageBytes))
} else {
caps = append(caps, "SIZE")
}

args := []string{"Hello " + domain}
Expand Down

0 comments on commit ca8725c

Please sign in to comment.