Skip to content

Commit

Permalink
Fix default EHLO banner formatting (#3365)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-lau authored May 17, 2024
1 parent aba0638 commit a218da1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ class Connection {
default:
// RFC5321 section 4.1.1.1
// Hostname/domain should appear after 250
this.respond(250, `${this.local.host} Hello ${this.get_remote('host')}${this.ehlo_hello_message}`);
this.respond(250, `${this.local.host} Hello ${this.get_remote('host')}, ${this.ehlo_hello_message}`);
}
}
ehlo_respond (retval, msg) {
Expand Down Expand Up @@ -883,7 +883,7 @@ class Connection {
// Hostname/domain should appear after 250

const response = [
`${this.local.host} Hello ${this.get_remote('host')}${this.ehlo_hello_message}`,
`${this.local.host} Hello ${this.get_remote('host')}, ${this.ehlo_hello_message}`,
"PIPELINING",
"8BITMIME",
];
Expand Down

0 comments on commit a218da1

Please sign in to comment.