Haraka 3.0.4 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.yaml +0 -1
- package/CONTRIBUTORS.md +2 -2
- package/Changes.md +34 -1
- package/bin/haraka +2 -1
- package/config/plugins +0 -2
- package/config/smtp.ini +1 -0
- package/config/tls.ini +2 -0
- package/docs/plugins/tls.md +8 -0
- package/http/html/index.html +6 -5
- package/package.json +10 -12
- package/plugins/queue/lmtp.js +3 -1
- package/test/config/smtp.ini +2 -0
- package/test/config/tls.ini +4 -2
- package/test/connection.js +2 -2
- package/test/outbound/index.js +1 -1
- package/test/tls_socket.js +5 -1
- package/.prettierrc.yml +0 -1
package/.eslintrc.yaml
CHANGED
package/CONTRIBUTORS.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
This handcrafted artisinal software is brought to you by:
|
|
4
4
|
|
|
5
|
-
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/haraka/Haraka/commits?author=msimerson">
|
|
5
|
+
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/haraka/Haraka/commits?author=msimerson">1623</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/662371?v=4"><br><a href="https://github.com/baudehlo">baudehlo</a> (<a href="https://github.com/haraka/Haraka/commits?author=baudehlo">969</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/550490?v=4"><br><a href="https://github.com/smfreegard">smfreegard</a> (<a href="https://github.com/haraka/Haraka/commits?author=smfreegard">794</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/959600?v=4"><br><a href="https://github.com/godsflaw">godsflaw</a> (<a href="https://github.com/haraka/Haraka/commits?author=godsflaw">171</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/934254?v=4"><br><a href="https://github.com/analogic">analogic</a> (<a href="https://github.com/haraka/Haraka/commits?author=analogic">42</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/1674289?v=4"><br><a href="https://github.com/Dexus">Dexus</a> (<a href="https://github.com/haraka/Haraka/commits?author=Dexus">42</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/82041?v=4"><br><a href="https://github.com/gramakri">gramakri</a> (<a href="https://github.com/haraka/Haraka/commits?author=gramakri">37</a>)|
|
|
6
6
|
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|
|
7
|
-
| <img height="80" src="https://avatars.githubusercontent.com/u/203240?v=4"><br><a href="https://github.com/lnedry">lnedry</a> (<a href="https://github.com/haraka/Haraka/commits?author=lnedry">
|
|
7
|
+
| <img height="80" src="https://avatars.githubusercontent.com/u/203240?v=4"><br><a href="https://github.com/lnedry">lnedry</a> (<a href="https://github.com/haraka/Haraka/commits?author=lnedry">25</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/748075?v=4"><br><a href="https://github.com/celesteking">celesteking</a> (<a href="https://github.com/haraka/Haraka/commits?author=celesteking">21</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/791972?v=4"><br><a href="https://github.com/lpatters">lpatters</a> (<a href="https://github.com/haraka/Haraka/commits?author=lpatters">20</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/366268?v=4"><br><a href="https://github.com/chazomaticus">chazomaticus</a> (<a href="https://github.com/haraka/Haraka/commits?author=chazomaticus">19</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/271024?v=4"><br><a href="https://github.com/hayesgm">hayesgm</a> (<a href="https://github.com/haraka/Haraka/commits?author=hayesgm">16</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/123708?v=4"><br><a href="https://github.com/arlolra">arlolra</a> (<a href="https://github.com/haraka/Haraka/commits?author=arlolra">16</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/1573133?v=4"><br><a href="https://github.com/gauravaror">gauravaror</a> (<a href="https://github.com/haraka/Haraka/commits?author=gauravaror">14</a>)|
|
|
8
8
|
| <img height="80" src="https://avatars.githubusercontent.com/u/260607?v=4"><br><a href="https://github.com/typingArtist">typingArtist</a> (<a href="https://github.com/haraka/Haraka/commits?author=typingArtist">14</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/158380?v=4"><br><a href="https://github.com/darkpixel">darkpixel</a> (<a href="https://github.com/haraka/Haraka/commits?author=darkpixel">12</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/11343494?v=4"><br><a href="https://github.com/superman20">superman20</a> (<a href="https://github.com/haraka/Haraka/commits?author=superman20">12</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/9887966?v=4"><br><a href="https://github.com/KingNoosh">KingNoosh</a> (<a href="https://github.com/haraka/Haraka/commits?author=KingNoosh">11</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/5229495?v=4"><br><a href="https://github.com/tstonis">tstonis</a> (<a href="https://github.com/haraka/Haraka/commits?author=tstonis">10</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/1746394?v=4"><br><a href="https://github.com/wltsmrz">wltsmrz</a> (<a href="https://github.com/haraka/Haraka/commits?author=wltsmrz">9</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/2176651?v=4"><br><a href="https://github.com/fatalbanana">fatalbanana</a> (<a href="https://github.com/haraka/Haraka/commits?author=fatalbanana">8</a>)|
|
|
9
9
|
| <img height="80" src="https://avatars.githubusercontent.com/u/231081?v=4"><br><a href="https://github.com/EyePulp">EyePulp</a> (<a href="https://github.com/haraka/Haraka/commits?author=EyePulp">8</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/81561?v=4"><br><a href="https://github.com/Synchro">Synchro</a> (<a href="https://github.com/haraka/Haraka/commits?author=Synchro">8</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/3957811?v=4"><br><a href="https://github.com/gene-hightower">gene-hightower</a> (<a href="https://github.com/haraka/Haraka/commits?author=gene-hightower">7</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/103802?v=4"><br><a href="https://github.com/joshuathayer">joshuathayer</a> (<a href="https://github.com/haraka/Haraka/commits?author=joshuathayer">6</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/8224508?v=4"><br><a href="https://github.com/DarkSorrow">DarkSorrow</a> (<a href="https://github.com/haraka/Haraka/commits?author=DarkSorrow">6</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/1521113?v=4"><br><a href="https://github.com/hontas">hontas</a> (<a href="https://github.com/haraka/Haraka/commits?author=hontas">5</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/1263856?v=4"><br><a href="https://github.com/ricardopolo">ricardopolo</a> (<a href="https://github.com/haraka/Haraka/commits?author=ricardopolo">5</a>)|
|
|
10
10
|
|
package/Changes.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
4
|
+
|
|
1
5
|
### Unreleased
|
|
2
6
|
|
|
7
|
+
### [3.0.5] - 2024-09-27
|
|
8
|
+
|
|
9
|
+
#### Fixed
|
|
10
|
+
|
|
11
|
+
- fix(q/lmtp): revert a refactoring error #3407
|
|
12
|
+
- fix: install Plugins.md when haraka -i #3406
|
|
13
|
+
- fix(haraka -h): add missing return for plugin list #3405
|
|
14
|
+
- fix `no_tls_hosts` related docs & tests #3404
|
|
15
|
+
- fix: install docs/Plugins.md when haraka -i installed
|
|
16
|
+
- fix(changes): spelling correction #3397
|
|
17
|
+
|
|
18
|
+
#### Changed
|
|
19
|
+
|
|
20
|
+
- lint: remove deprecated semi-style rule
|
|
21
|
+
- removed dependency on ldap plugins #3399
|
|
22
|
+
- doc(tls.md): add note for no_tls_hosts for outbound
|
|
23
|
+
- test(tls): add tests for no_tls_hosts for inbound & outbound
|
|
24
|
+
- dep version bumps:
|
|
25
|
+
- haraka-email-message: 1.2.4, #3408
|
|
26
|
+
- nodemailer: 6.9.15
|
|
27
|
+
- nopt: 8.0.0
|
|
28
|
+
- tld: 1.2.2
|
|
29
|
+
- plugin-dkim: 1.0.7
|
|
30
|
+
- plugin-dns-list: 1.2.1
|
|
31
|
+
- plugin-elastisearch: 8.0.3
|
|
32
|
+
- test-fixtures: 1.3.8
|
|
33
|
+
|
|
34
|
+
|
|
3
35
|
### [3.0.4] - 2024-08-21
|
|
4
36
|
|
|
5
37
|
#### Added
|
|
@@ -46,7 +78,7 @@
|
|
|
46
78
|
- client_pool.get_client & release_client: arity of 5 -> 2
|
|
47
79
|
- mx_lookup: make it async/await
|
|
48
80
|
- mx_lookup: deleted. Logic moved into net_utils #3322
|
|
49
|
-
- use net_utils.
|
|
81
|
+
- use net_utils.HarakaMx for get_mx parsing #3344
|
|
50
82
|
- emit log message when ignoring local MX #3285
|
|
51
83
|
- pass in config when initiating txn #3315
|
|
52
84
|
- minor es6 updates #3315, #3322
|
|
@@ -1552,3 +1584,4 @@
|
|
|
1552
1584
|
[3.0.2]: https://github.com/haraka/Haraka/releases/tag/v3.0.2
|
|
1553
1585
|
[3.0.3]: https://github.com/haraka/Haraka/releases/tag/v3.0.3
|
|
1554
1586
|
[3.0.4]: https://github.com/haraka/Haraka/releases/tag/3.0.4
|
|
1587
|
+
[3.0.5]: https://github.com/haraka/Haraka/releases/tag/v3.0.5
|
package/bin/haraka
CHANGED
|
@@ -228,7 +228,7 @@ const plugin_doc = [
|
|
|
228
228
|
|
|
229
229
|
|
|
230
230
|
function getHooks () { // see haraka/Haraka#3306
|
|
231
|
-
fs.readFileSync('docs/Plugins.md').toString()
|
|
231
|
+
return fs.readFileSync('docs/Plugins.md').toString()
|
|
232
232
|
.split('## Available Hooks')[1] // discard everything before this string
|
|
233
233
|
.split('### rcpt')[0] // discard everything after this string
|
|
234
234
|
.match(/\*\s(\S+)/gm) // grab the first word of lines starting with '* '
|
|
@@ -554,6 +554,7 @@ else if (parsed.install) {
|
|
|
554
554
|
for (const d of ['plugins', 'docs', 'config']) {
|
|
555
555
|
utils.mkDir(path.join(pa, d));
|
|
556
556
|
}
|
|
557
|
+
utils.copyFile(path.join(base, 'docs', 'Plugins.md'), path.join(pa, 'docs', 'Plugins.md'));
|
|
557
558
|
utils.createFile(path.join(pa, 'README'), readme, {}, parsed.force);
|
|
558
559
|
utils.createFile(path.join(pa, 'package.json'), packageJson, {}, parsed.force);
|
|
559
560
|
const bytes = require('crypto').randomBytes(32);
|
package/config/plugins
CHANGED
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
# ----------
|
|
39
39
|
# auth/flat_file
|
|
40
40
|
# auth/auth_proxy
|
|
41
|
-
# auth/auth_ldap
|
|
42
41
|
|
|
43
42
|
# MAIL FROM
|
|
44
43
|
# ----------
|
|
@@ -50,7 +49,6 @@ mail_from.is_resolvable
|
|
|
50
49
|
# At least one rcpt_to plugin is REQUIRED for inbound email.
|
|
51
50
|
rcpt_to.in_host_list
|
|
52
51
|
# qmail-deliverable
|
|
53
|
-
# rcpt_to.ldap
|
|
54
52
|
# rcpt_to.routes
|
|
55
53
|
|
|
56
54
|
# DATA
|
package/config/smtp.ini
CHANGED
package/config/tls.ini
CHANGED
package/docs/plugins/tls.md
CHANGED
|
@@ -109,6 +109,14 @@ If needed, add this section to the `config/tls.ini` file and list any IP ranges
|
|
|
109
109
|
172.16.0.0/16
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
+
Note: `[no_tls_hosts]` section applies to inbound only. For outbound mail, this feature is implemented as an array like `force_tls_hosts`:
|
|
113
|
+
|
|
114
|
+
```ini
|
|
115
|
+
[outbound]
|
|
116
|
+
no_tls_hosts[]=192.168.1.3
|
|
117
|
+
no_tls_hosts[]=172.16.0.0/16
|
|
118
|
+
```
|
|
119
|
+
|
|
112
120
|
The [Node.js TLS](http://nodejs.org/api/tls.html) page has additional information about the following options.
|
|
113
121
|
|
|
114
122
|
### no_starttls_ports
|
package/http/html/index.html
CHANGED
|
@@ -9,10 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.5.1/css/bootstrap.min.css">
|
|
11
11
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.5.1/css/bootstrap-theme.min.css">
|
|
12
|
+
|
|
13
|
+
<script src="https://code.jquery.com/jquery-3.5.1.min.js" async></script>
|
|
14
|
+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.5.1/js/bootstrap.min.js" async></script>
|
|
12
15
|
</head>
|
|
13
16
|
<body>
|
|
14
17
|
<!--[if lt IE 7]>
|
|
15
|
-
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="
|
|
18
|
+
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
|
|
16
19
|
<![endif]-->
|
|
17
20
|
|
|
18
21
|
<ul id="tabList" class="nav nav-tabs" role="tablist navigation">
|
|
@@ -23,13 +26,11 @@
|
|
|
23
26
|
<div class="tab-pane fade in active" id="home">
|
|
24
27
|
<h1>Haraka, a mail server (MTA).</h1>
|
|
25
28
|
|
|
26
|
-
<p>You are visiting an installation of <a href="
|
|
29
|
+
<p>You are visiting an installation of <a href="https://haraka.github.io">Haraka</a>.</p>
|
|
27
30
|
|
|
28
|
-
<p>Haraka is on the <a href="
|
|
31
|
+
<p>Haraka is on the <a href="https://haraka.github.io">web</a> and <a href="https://github.com/haraka/Haraka">GitHub</a></p>
|
|
29
32
|
</div>
|
|
30
33
|
</div>
|
|
31
34
|
|
|
32
|
-
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
|
|
33
|
-
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.5.1/js/bootstrap.min.js"></script>
|
|
34
35
|
</body>
|
|
35
36
|
</html>
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"server",
|
|
10
10
|
"email"
|
|
11
11
|
],
|
|
12
|
-
"version": "3.0.
|
|
12
|
+
"version": "3.0.5",
|
|
13
13
|
"homepage": "http://haraka.github.io",
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"haraka-config": "^1.4.0",
|
|
28
28
|
"haraka-constants": "^1.0.7",
|
|
29
29
|
"haraka-dsn": "^1.1.0",
|
|
30
|
-
"haraka-email-message": "^1.2.
|
|
30
|
+
"haraka-email-message": "^1.2.4",
|
|
31
31
|
"haraka-message-stream": "^1.2.2",
|
|
32
32
|
"haraka-net-utils": "^1.7.0",
|
|
33
33
|
"haraka-notes": "^1.1.0",
|
|
34
34
|
"haraka-plugin-redis": "^2.0.7",
|
|
35
35
|
"haraka-results": "^2.2.4",
|
|
36
|
-
"haraka-tld": "^1.2.
|
|
36
|
+
"haraka-tld": "^1.2.2",
|
|
37
37
|
"haraka-utils": "^1.1.3",
|
|
38
38
|
"ipaddr.js": "~2.2.0",
|
|
39
39
|
"node-gyp": "^10.2.0",
|
|
40
|
-
"nopt": "^
|
|
40
|
+
"nopt": "^8.0.0",
|
|
41
41
|
"npid": "~0.4.0",
|
|
42
42
|
"redis": "~4.7.0",
|
|
43
43
|
"semver": "^7.6.3",
|
|
@@ -49,14 +49,13 @@
|
|
|
49
49
|
"haraka-plugin-aliases": "^1.0.2",
|
|
50
50
|
"haraka-plugin-asn": "^2.0.3",
|
|
51
51
|
"haraka-plugin-attachment": "^1.1.2",
|
|
52
|
-
"haraka-plugin-auth-ldap": "^1.1.0",
|
|
53
52
|
"haraka-plugin-avg": "^1.1.0",
|
|
54
53
|
"haraka-plugin-bounce": "1.0.2",
|
|
55
54
|
"haraka-plugin-clamd": "1.0.1",
|
|
56
55
|
"haraka-plugin-dcc": "^1.0.2",
|
|
57
|
-
"haraka-plugin-dkim": "^1.0.
|
|
58
|
-
"haraka-plugin-dns-list": "^1.2.
|
|
59
|
-
"haraka-plugin-elasticsearch": "^8.0.
|
|
56
|
+
"haraka-plugin-dkim": "^1.0.7",
|
|
57
|
+
"haraka-plugin-dns-list": "^1.2.1",
|
|
58
|
+
"haraka-plugin-elasticsearch": "^8.0.3",
|
|
60
59
|
"haraka-plugin-esets": "^1.0.0",
|
|
61
60
|
"haraka-plugin-fcrdns": "^1.1.0",
|
|
62
61
|
"haraka-plugin-geoip": "^1.1.0",
|
|
@@ -70,7 +69,6 @@
|
|
|
70
69
|
"haraka-plugin-messagesniffer": "^1.0.0",
|
|
71
70
|
"haraka-plugin-p0f": "^1.0.9",
|
|
72
71
|
"haraka-plugin-qmail-deliverable": "^1.2.3",
|
|
73
|
-
"haraka-plugin-rcpt-ldap": "^1.1.0",
|
|
74
72
|
"haraka-plugin-recipient-routes": "^1.2.0",
|
|
75
73
|
"haraka-plugin-rspamd": "^1.3.1",
|
|
76
74
|
"haraka-plugin-spamassassin": "^1.0.0",
|
|
@@ -83,10 +81,10 @@
|
|
|
83
81
|
},
|
|
84
82
|
"devDependencies": {
|
|
85
83
|
"@haraka/eslint-config": "^1.1.5",
|
|
86
|
-
"haraka-test-fixtures": "^1.3.
|
|
84
|
+
"haraka-test-fixtures": "^1.3.8",
|
|
87
85
|
"mocha": "^10.7.3",
|
|
88
86
|
"mock-require": "^3.0.3",
|
|
89
|
-
"nodemailer": "^6.9.
|
|
87
|
+
"nodemailer": "^6.9.15"
|
|
90
88
|
},
|
|
91
89
|
"bugs": {
|
|
92
90
|
"mail": "haraka.mail@gmail.com",
|
|
@@ -97,7 +95,7 @@
|
|
|
97
95
|
"haraka_grep": "./bin/haraka_grep"
|
|
98
96
|
},
|
|
99
97
|
"scripts": {
|
|
100
|
-
"format": "npm run prettier:fix && npm run lint:fix",
|
|
98
|
+
"format:NYET": "npm run prettier:fix && npm run lint:fix",
|
|
101
99
|
"lint": "npx eslint@^8 *.js outbound plugins plugins/*/*.js test test/*/*.js test/*/*/*.js bin/haraka",
|
|
102
100
|
"lint:fix": "npx eslint@^8 --fix *.js outbound plugins plugins/*/*.js test test/*/*.js test/*/*/*.js bin/haraka",
|
|
103
101
|
"prettier": "npx prettier . --check",
|
package/plugins/queue/lmtp.js
CHANGED
|
@@ -37,7 +37,9 @@ exports.hook_queue = (next, connection) => {
|
|
|
37
37
|
const txn = connection?.transaction;
|
|
38
38
|
if (!txn) return next();
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
const q_wants = txn.notes.get('queue.wants');
|
|
41
|
+
|
|
42
|
+
if (q_wants && q_wants !== 'lmtp') return next();
|
|
41
43
|
|
|
42
44
|
txn.notes.using_lmtp = true;
|
|
43
45
|
outbound.send_trans_email(txn, next);
|
package/test/config/smtp.ini
CHANGED
package/test/config/tls.ini
CHANGED
|
@@ -26,8 +26,8 @@ no_starttls_ports[]=2525
|
|
|
26
26
|
|
|
27
27
|
; no_tls_hosts - disable TLS for servers with broken TLS.
|
|
28
28
|
[no_tls_hosts]
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
192.168.1.1
|
|
30
|
+
172.16.0.0/16
|
|
31
31
|
; 172.16.0.0/16
|
|
32
32
|
|
|
33
33
|
[outbound]
|
|
@@ -41,3 +41,5 @@ requestCert=false
|
|
|
41
41
|
honorCipherOrder=false
|
|
42
42
|
force_tls_hosts[]=first.example.com
|
|
43
43
|
force_tls_hosts[]=second.example.net
|
|
44
|
+
no_tls_hosts[]=127.0.0.2
|
|
45
|
+
no_tls_hosts[]=192.168.31.1/24
|
package/test/connection.js
CHANGED
|
@@ -216,7 +216,7 @@ describe('connection', () => {
|
|
|
216
216
|
|
|
217
217
|
})
|
|
218
218
|
|
|
219
|
-
describe('
|
|
219
|
+
describe('local.info', () => {
|
|
220
220
|
beforeEach(_set_up)
|
|
221
221
|
|
|
222
222
|
it('is Haraka/version', () => {
|
|
@@ -299,4 +299,4 @@ describe('connection', () => {
|
|
|
299
299
|
);
|
|
300
300
|
})
|
|
301
301
|
})
|
|
302
|
-
})
|
|
302
|
+
})
|
package/test/outbound/index.js
CHANGED
|
@@ -109,7 +109,7 @@ describe('outbound', () => {
|
|
|
109
109
|
requestCert: false,
|
|
110
110
|
honorCipherOrder: false,
|
|
111
111
|
redis: { disable_for_failed_hosts: false },
|
|
112
|
-
no_tls_hosts: [],
|
|
112
|
+
no_tls_hosts: ['127.0.0.2', '192.168.31.1/24'],
|
|
113
113
|
force_tls_hosts: ['first.example.com', 'second.example.net']
|
|
114
114
|
})
|
|
115
115
|
})
|
package/test/tls_socket.js
CHANGED
|
@@ -152,7 +152,10 @@ describe('tls_socket', () => {
|
|
|
152
152
|
no_starttls_ports: [2525],
|
|
153
153
|
},
|
|
154
154
|
redis: { disable_for_failed_hosts: false },
|
|
155
|
-
no_tls_hosts: {
|
|
155
|
+
no_tls_hosts: {
|
|
156
|
+
'192.168.1.1': undefined,
|
|
157
|
+
'172.16.0.0/16': undefined,
|
|
158
|
+
},
|
|
156
159
|
mutual_auth_hosts: {},
|
|
157
160
|
mutual_auth_hosts_exclude: {},
|
|
158
161
|
outbound: {
|
|
@@ -165,6 +168,7 @@ describe('tls_socket', () => {
|
|
|
165
168
|
requestCert: false,
|
|
166
169
|
honorCipherOrder: false,
|
|
167
170
|
force_tls_hosts: ['first.example.com', 'second.example.net'],
|
|
171
|
+
no_tls_hosts: ['127.0.0.2', '192.168.31.1/24'],
|
|
168
172
|
}
|
|
169
173
|
})
|
|
170
174
|
})
|
package/.prettierrc.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
singleQuote: true
|