pmcf 1.87.0 → 1.87.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/dns.mjs +6 -2
package/package.json
CHANGED
package/src/dns.mjs
CHANGED
|
@@ -151,14 +151,18 @@ export class DNSService extends Base {
|
|
|
151
151
|
...serviceAddresses(this.source, DNS_SERVICE_FILTER).map(a => ` ${a};`),
|
|
152
152
|
"};"
|
|
153
153
|
];
|
|
154
|
-
await writeLines(join(p1, "etc/named/options"),
|
|
154
|
+
await writeLines(join(p1, "etc/named/options"), `forwarders.conf`, options);
|
|
155
155
|
|
|
156
156
|
const category = [
|
|
157
157
|
"acl trusted {",
|
|
158
158
|
...Array.from(subnets(this.trusted)).map(subnet => ` ${subnet.name};`),
|
|
159
159
|
"};",
|
|
160
|
+
"",
|
|
160
161
|
"acl protected {",
|
|
161
162
|
...Array.from(subnets(this.protected)).map(subnet => ` ${subnet.name};`),
|
|
163
|
+
"};",
|
|
164
|
+
"",
|
|
165
|
+
"acl open {",
|
|
162
166
|
"};"
|
|
163
167
|
];
|
|
164
168
|
|
|
@@ -168,7 +172,7 @@ export class DNSService extends Base {
|
|
|
168
172
|
category
|
|
169
173
|
);
|
|
170
174
|
|
|
171
|
-
if (options.length > 2 || category.length >
|
|
175
|
+
if (options.length > 2 || category.length > 8) {
|
|
172
176
|
yield packageData;
|
|
173
177
|
}
|
|
174
178
|
|