pmcf 1.69.0 → 1.69.1
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/package.json +1 -1
- package/src/dns.mjs +7 -7
- package/types/cluster.d.mts +2 -2
- package/types/dns.d.mts +3 -3
- package/types/location.d.mts +2 -2
- package/types/network.d.mts +1 -1
- package/types/owner.d.mts +1 -1
- package/types/root.d.mts +2 -2
package/package.json
CHANGED
package/src/dns.mjs
CHANGED
|
@@ -31,7 +31,7 @@ const DNSServiceTypeDefinition = {
|
|
|
31
31
|
expire: { type: "string", collection: false, writeable: true },
|
|
32
32
|
minimum: { type: "string", collection: false, writeable: true },
|
|
33
33
|
forwardsTo: { type: "network", collection: true, writeable: true },
|
|
34
|
-
|
|
34
|
+
trusted: { type: "network", collection: true, writeable: true },
|
|
35
35
|
allowedUpdates: { type: "string", collection: true, writeable: true }
|
|
36
36
|
}
|
|
37
37
|
};
|
|
@@ -46,7 +46,7 @@ export class DNSService extends Base {
|
|
|
46
46
|
hasLinkLocalAdresses = true;
|
|
47
47
|
notify = true;
|
|
48
48
|
#forwardsTo = [];
|
|
49
|
-
#
|
|
49
|
+
#trusted = [];
|
|
50
50
|
|
|
51
51
|
refresh = 36000;
|
|
52
52
|
retry = 72000;
|
|
@@ -75,12 +75,12 @@ export class DNSService extends Base {
|
|
|
75
75
|
return [this.refresh, this.retry, this.expire, this.minimum];
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
set
|
|
79
|
-
this.#
|
|
78
|
+
set trusted(value) {
|
|
79
|
+
this.#trusted.push(value);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
get
|
|
83
|
-
return this.#
|
|
82
|
+
get trusted() {
|
|
83
|
+
return this.#trusted;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
set forwardsTo(value) {
|
|
@@ -159,7 +159,7 @@ export class DNSService extends Base {
|
|
|
159
159
|
|
|
160
160
|
const category = [
|
|
161
161
|
"acl trusted {",
|
|
162
|
-
...Array.from(subnets(this.
|
|
162
|
+
...Array.from(subnets(this.trusted)).map(subnet => ` ${subnet.name};`),
|
|
163
163
|
"};"
|
|
164
164
|
];
|
|
165
165
|
|
package/types/cluster.d.mts
CHANGED
|
@@ -142,7 +142,7 @@ export class Cluster extends Host {
|
|
|
142
142
|
collection: boolean;
|
|
143
143
|
writeable: boolean;
|
|
144
144
|
};
|
|
145
|
-
|
|
145
|
+
trusted: {
|
|
146
146
|
type: string;
|
|
147
147
|
collection: boolean;
|
|
148
148
|
writeable: boolean;
|
|
@@ -331,7 +331,7 @@ export class Cluster extends Host {
|
|
|
331
331
|
collection: boolean;
|
|
332
332
|
writeable: boolean;
|
|
333
333
|
};
|
|
334
|
-
|
|
334
|
+
trusted: {
|
|
335
335
|
type: string;
|
|
336
336
|
collection: boolean;
|
|
337
337
|
writeable: boolean;
|
package/types/dns.d.mts
CHANGED
|
@@ -56,7 +56,7 @@ export class DNSService extends Base {
|
|
|
56
56
|
collection: boolean;
|
|
57
57
|
writeable: boolean;
|
|
58
58
|
};
|
|
59
|
-
|
|
59
|
+
trusted: {
|
|
60
60
|
type: string;
|
|
61
61
|
collection: boolean;
|
|
62
62
|
writeable: boolean;
|
|
@@ -79,8 +79,8 @@ export class DNSService extends Base {
|
|
|
79
79
|
expire: number;
|
|
80
80
|
minimum: number;
|
|
81
81
|
get soaUpdates(): number[];
|
|
82
|
-
set
|
|
83
|
-
get
|
|
82
|
+
set trusted(value: any[]);
|
|
83
|
+
get trusted(): any[];
|
|
84
84
|
set forwardsTo(value: any[]);
|
|
85
85
|
get forwardsTo(): any[];
|
|
86
86
|
get forwardsToAdresses(): any[];
|
package/types/location.d.mts
CHANGED
|
@@ -142,7 +142,7 @@ export class Location extends Owner {
|
|
|
142
142
|
collection: boolean;
|
|
143
143
|
writeable: boolean;
|
|
144
144
|
};
|
|
145
|
-
|
|
145
|
+
trusted: {
|
|
146
146
|
type: string;
|
|
147
147
|
collection: boolean;
|
|
148
148
|
writeable: boolean;
|
|
@@ -331,7 +331,7 @@ export class Location extends Owner {
|
|
|
331
331
|
collection: boolean;
|
|
332
332
|
writeable: boolean;
|
|
333
333
|
};
|
|
334
|
-
|
|
334
|
+
trusted: {
|
|
335
335
|
type: string;
|
|
336
336
|
collection: boolean;
|
|
337
337
|
writeable: boolean;
|
package/types/network.d.mts
CHANGED
package/types/owner.d.mts
CHANGED
package/types/root.d.mts
CHANGED
|
@@ -146,7 +146,7 @@ export class Root extends Location {
|
|
|
146
146
|
collection: boolean;
|
|
147
147
|
writeable: boolean;
|
|
148
148
|
};
|
|
149
|
-
|
|
149
|
+
trusted: {
|
|
150
150
|
type: string;
|
|
151
151
|
collection: boolean;
|
|
152
152
|
writeable: boolean;
|
|
@@ -335,7 +335,7 @@ export class Root extends Location {
|
|
|
335
335
|
collection: boolean;
|
|
336
336
|
writeable: boolean;
|
|
337
337
|
};
|
|
338
|
-
|
|
338
|
+
trusted: {
|
|
339
339
|
type: string;
|
|
340
340
|
collection: boolean;
|
|
341
341
|
writeable: boolean;
|