fcdns 0.3.11 → 0.3.12
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.3.12](https://github.com/BlackGlory/fcdns/compare/v0.3.11...v0.3.12) (2022-03-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* try fix the out of range problem about SOA serial ([ebc5275](https://github.com/BlackGlory/fcdns/commit/ebc5275cd7ec3074e07558b52ca93d492919f07c))
|
|
11
|
+
|
|
5
12
|
### [0.3.11](https://github.com/BlackGlory/fcdns/compare/v0.3.10...v0.3.11) (2022-03-26)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fcdns",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.12",
|
|
4
4
|
"description": "DNS relay server with fact-checking.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dns"
|
|
7
7
|
],
|
|
8
8
|
"bin": "lib/cli.js",
|
|
9
9
|
"files": [
|
|
10
|
+
"patches",
|
|
10
11
|
"lib"
|
|
11
12
|
],
|
|
12
13
|
"repository": "git@github.com:BlackGlory/fcdns.git",
|
|
13
14
|
"author": "BlackGlory <woshenmedoubuzhidao@blackglory.me>",
|
|
14
15
|
"license": "MIT",
|
|
15
16
|
"scripts": {
|
|
17
|
+
"postinstall": "patch-package",
|
|
16
18
|
"lint": "eslint --ext .js,.jsx,.ts,.tsx --quiet src",
|
|
17
19
|
"test": "jest --config jest.config.js",
|
|
18
20
|
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
|
|
@@ -63,7 +65,9 @@
|
|
|
63
65
|
"iterable-operator": "^1.0.1",
|
|
64
66
|
"ms": "^2.1.3",
|
|
65
67
|
"native-node-dns": "^0.7.6",
|
|
68
|
+
"patch-package": "^6.4.7",
|
|
66
69
|
"ping": "^0.4.1",
|
|
70
|
+
"postinstall-postinstall": "^2.1.0",
|
|
67
71
|
"return-style": "^1.0.0"
|
|
68
72
|
}
|
|
69
73
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
diff --git a/node_modules/native-node-dns-packet/packet.js b/node_modules/native-node-dns-packet/packet.js
|
|
2
|
+
index 985b769..cb7b469 100644
|
|
3
|
+
--- a/node_modules/native-node-dns-packet/packet.js
|
|
4
|
+
+++ b/node_modules/native-node-dns-packet/packet.js
|
|
5
|
+
@@ -352,7 +352,8 @@ function writeSoa(buff, val, label_index) {
|
|
6
|
+
assertUndefined(val.minimum, 'SOA record requires "minimum"');
|
|
7
|
+
namePack(val.primary, buff, label_index);
|
|
8
|
+
namePack(val.admin, buff, label_index);
|
|
9
|
+
- buff.writeUInt32BE(val.serial & 0xFFFFFFFF);
|
|
10
|
+
+ const serial = val.serial & 0xFFFFFFFF
|
|
11
|
+
+ buff.writeUInt32BE(serial < 0 || serial > 4294967295 ? 0 : serial);
|
|
12
|
+
buff.writeInt32BE(val.refresh & 0xFFFFFFFF);
|
|
13
|
+
buff.writeInt32BE(val.retry & 0xFFFFFFFF);
|
|
14
|
+
buff.writeInt32BE(val.expiration & 0xFFFFFFFF);
|