Skip to content

Commit 7062589

Browse files
authored
auth_base: return if setting switches to false at runtime (#3298)
1 parent 6c4fe26 commit 7062589

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Changes.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#### Changed
55

6+
- auth_base: enable disabling constrain_sender at runtime #3298
67
- connection: support IPv6 when setting remote.is_private #3295
78
- outbound/mx_lookup: make it async/await
89
- outbound: emit log message when ignoring local MX

plugins/auth/auth_base.js

+2
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ exports.auth_cram_md5 = function (next, connection, params) {
241241
exports.hexi = number => String(Math.abs(parseInt(number)).toString(16))
242242

243243
exports.constrain_sender = function (next, connection, params) {
244+
if (this?.cfg?.main?.constrain_sender === false) return next()
245+
244246
const au = connection.results.get('auth')?.user
245247
if (!au) return next()
246248

0 commit comments

Comments
 (0)