Skip to content

Commit

Permalink
fix(bin/haraka): set server.cfg and pass to conn
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Jan 19, 2023
1 parent ed57477 commit 1dae4b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/haraka
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,10 @@ else if (parsed.test) {
address () {
return { port: 25, family: 'ipv4', address: '127.0.0.1' };
},
cfg : require('haraka-config').get('smtp.ini'),
notes: new Notes(),
}
const connection = Connection.createConnection(client, server);
const connection = Connection.createConnection(client, server, server.cfg);
if (parsed['set-relay']) connection.relaying = true;

const run_next_hook = function () {
Expand Down

0 comments on commit 1dae4b9

Please sign in to comment.