pmcf 1.101.0 → 1.101.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/package.json +1 -1
- package/src/services/dns.mjs +8 -8
- package/types/services/dns.d.mts +4 -4
package/package.json
CHANGED
package/src/services/dns.mjs
CHANGED
|
@@ -32,7 +32,7 @@ const DNSServiceTypeDefinition = {
|
|
|
32
32
|
collection: false,
|
|
33
33
|
writeable: true
|
|
34
34
|
},
|
|
35
|
-
|
|
35
|
+
exclude: { type: "network", collection: true, writeable: true },
|
|
36
36
|
notify: { type: "boolean", collection: false, writeable: true },
|
|
37
37
|
recordTTL: { type: "string", collection: false, writeable: true },
|
|
38
38
|
serial: { type: "number", collection: false, writeable: true },
|
|
@@ -73,7 +73,7 @@ export class DNSService extends Service {
|
|
|
73
73
|
_trusted = [];
|
|
74
74
|
_protected = [];
|
|
75
75
|
_open = [];
|
|
76
|
-
|
|
76
|
+
_exclude = new Set([]);
|
|
77
77
|
|
|
78
78
|
serial = Math.ceil(Date.now() / 1000);
|
|
79
79
|
refresh = 36000;
|
|
@@ -134,12 +134,12 @@ export class DNSService extends Service {
|
|
|
134
134
|
return this._source;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
set
|
|
138
|
-
this.
|
|
137
|
+
set exclude(value) {
|
|
138
|
+
this._exclude.add(value);
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
get
|
|
142
|
-
return this.
|
|
141
|
+
get exclude() {
|
|
142
|
+
return this._exclude;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
*findServices(filter) {
|
|
@@ -171,7 +171,7 @@ export class DNSService extends Service {
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
async *preparePackages(dir) {
|
|
174
|
-
const location = this.
|
|
174
|
+
const location = this.owner.owner;
|
|
175
175
|
const name = location.name;
|
|
176
176
|
const p1 = join(dir, "p1");
|
|
177
177
|
const packageData = {
|
|
@@ -338,7 +338,7 @@ async function generateZoneDefs(dns, location, packageData) {
|
|
|
338
338
|
networkInterface,
|
|
339
339
|
domainNames
|
|
340
340
|
} of location.networkAddresses()) {
|
|
341
|
-
if (!dns.
|
|
341
|
+
if (!dns.exclude.has(networkInterface.network)) {
|
|
342
342
|
const host = networkInterface.host;
|
|
343
343
|
if (
|
|
344
344
|
!addresses.has(address) &&
|
package/types/services/dns.d.mts
CHANGED
|
@@ -41,7 +41,7 @@ export class DNSService extends Service {
|
|
|
41
41
|
collection: boolean;
|
|
42
42
|
writeable: boolean;
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
exclude: {
|
|
45
45
|
type: string;
|
|
46
46
|
collection: boolean;
|
|
47
47
|
writeable: boolean;
|
|
@@ -98,7 +98,7 @@ export class DNSService extends Service {
|
|
|
98
98
|
_trusted: any[];
|
|
99
99
|
_protected: any[];
|
|
100
100
|
_open: any[];
|
|
101
|
-
|
|
101
|
+
_exclude: Set<any>;
|
|
102
102
|
serial: number;
|
|
103
103
|
refresh: number;
|
|
104
104
|
retry: number;
|
|
@@ -114,8 +114,8 @@ export class DNSService extends Service {
|
|
|
114
114
|
get open(): any[];
|
|
115
115
|
set source(value: any[]);
|
|
116
116
|
get source(): any[];
|
|
117
|
-
set
|
|
118
|
-
get
|
|
117
|
+
set exclude(value: Set<any>);
|
|
118
|
+
get exclude(): Set<any>;
|
|
119
119
|
get systemdConfig(): (string | {
|
|
120
120
|
DNS: string;
|
|
121
121
|
FallbackDNS: string;
|