pmcf 2.64.0 → 2.64.2
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/README.md +15 -1
- package/package.json +2 -2
- package/src/services/bind.mjs +8 -5
package/README.md
CHANGED
|
@@ -32,8 +32,10 @@
|
|
|
32
32
|
* [subnet](#subnet)
|
|
33
33
|
* [networkInterface](#networkinterface)
|
|
34
34
|
* [address](#address)
|
|
35
|
-
* [
|
|
35
|
+
* [addresses](#addresses)
|
|
36
36
|
* [Parameters](#parameters-4)
|
|
37
|
+
* [serviceEndpoints](#serviceendpoints)
|
|
38
|
+
* [Parameters](#parameters-5)
|
|
37
39
|
|
|
38
40
|
## Base
|
|
39
41
|
|
|
@@ -82,6 +84,18 @@ Type: NetworkInterface
|
|
|
82
84
|
|
|
83
85
|
Type: ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [Uint8Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) | [Uint16Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array))
|
|
84
86
|
|
|
87
|
+
## addresses
|
|
88
|
+
|
|
89
|
+
### Parameters
|
|
90
|
+
|
|
91
|
+
* `sources` **Iterable<(Owner | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))>** 
|
|
92
|
+
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
93
|
+
|
|
94
|
+
* `options.aggregate` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
|
|
95
|
+
* `options.filter` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
96
|
+
|
|
97
|
+
Returns **Iterable<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** addresses
|
|
98
|
+
|
|
85
99
|
## serviceEndpoints
|
|
86
100
|
|
|
87
101
|
### Parameters
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "2.64.
|
|
3
|
+
"version": "2.64.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"ip-utilties": "^1.4.6",
|
|
50
50
|
"npm-pkgbuild": "^18.2.10",
|
|
51
|
-
"pacc": "^3.4.
|
|
51
|
+
"pacc": "^3.4.5",
|
|
52
52
|
"pkg-dir": "^8.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
package/src/services/bind.mjs
CHANGED
|
@@ -275,7 +275,7 @@ export class BindService extends ExtraSourceService {
|
|
|
275
275
|
);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
if (
|
|
278
|
+
if (this.internal?.length) {
|
|
279
279
|
await writeLines(
|
|
280
280
|
join(configPackageDir, "etc/named"),
|
|
281
281
|
`0-acl-${name}.conf`,
|
|
@@ -395,13 +395,16 @@ export class BindService extends ExtraSourceService {
|
|
|
395
395
|
};
|
|
396
396
|
configs.push(config);
|
|
397
397
|
|
|
398
|
-
const locationRecord = DNSRecord("location", "TXT", locationName);
|
|
399
|
-
|
|
400
398
|
const zone = {
|
|
401
399
|
id: domain,
|
|
402
400
|
file: `${locationName}/${domain}.zone`,
|
|
403
|
-
records: new Set(
|
|
401
|
+
records: new Set(this.defaultRecords)
|
|
404
402
|
};
|
|
403
|
+
|
|
404
|
+
if (this.hasLocationRecord) {
|
|
405
|
+
zone.records.add(DNSRecord("location", "TXT", locationName));
|
|
406
|
+
}
|
|
407
|
+
|
|
405
408
|
config.zones.push(zone);
|
|
406
409
|
|
|
407
410
|
if (this.hasCatalog) {
|
|
@@ -456,7 +459,7 @@ export class BindService extends ExtraSourceService {
|
|
|
456
459
|
)
|
|
457
460
|
);
|
|
458
461
|
}
|
|
459
|
-
if (subnet && host
|
|
462
|
+
if (subnet && host.domain === domain) {
|
|
460
463
|
let reverseZone = reverseZones.get(subnet.address);
|
|
461
464
|
|
|
462
465
|
if (!reverseZone) {
|