Skip to content

Commit

Permalink
fix print log (haraka#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
ne4t0 authored Dec 23, 2022
1 parent c7861c1 commit 157d49e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ exports.hook_mail = async function (next, connection, params) {
const result = await spf.check_host(connection.remote.ip, host, mfrom)

// typical inbound (!relay)
if (!connection.relaying) return ch_cb(result)
if (!connection.relaying) return ch_cb(null, result)

// outbound (relaying), context=sender
if (plugin.cfg.relay.context === 'sender') return ch_cb(result)
if (plugin.cfg.relay.context === 'sender') return ch_cb(null, result)

// outbound (relaying), context=myself
const my_public_ip = await net_utils.get_public_ip()
Expand Down

0 comments on commit 157d49e

Please sign in to comment.