haraka-plugin-rspamd
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -0,2 +1,5 @@ | ||
## 1.1.6 - 2020-02-29 | ||
- Allow connecting to rspamd via unix sockets | ||
## 1.1.5 - 2019-04-01 | ||
@@ -3,0 +6,0 @@ |
13
index.js
@@ -70,4 +70,2 @@ 'use strict'; | ||
headers: {}, | ||
port: plugin.cfg.main.port, | ||
host: plugin.cfg.main.host, | ||
path: '/checkv2', | ||
@@ -77,2 +75,10 @@ method: 'POST', | ||
if (plugin.cfg.main.unix_socket) { | ||
options.socketPath = plugin.cfg.main.unix_socket; | ||
} | ||
else { | ||
options.port = plugin.cfg.main.port; | ||
options.host = plugin.cfg.main.host; | ||
} | ||
if (connection.notes.auth_user) { | ||
@@ -190,3 +196,4 @@ options.headers.User = connection.notes.auth_user; | ||
connection.transaction.add_header(key, header_value.value); | ||
} else { | ||
} | ||
else { | ||
connection.transaction.add_header(key, header_value); | ||
@@ -193,0 +200,0 @@ } |
{ | ||
"name": "haraka-plugin-rspamd", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "Haraka plugin for rspamd", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -27,2 +27,6 @@ [![Build Status][ci-img]][ci-url] | ||
- unix_socket | ||
Path to a unix socket to connect to. If set, overrides host and port. | ||
- add\_headers | ||
@@ -29,0 +33,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31834
646
187