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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/dns.mjs +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "1.87.0",
3
+ "version": "1.87.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
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"), `${name}.conf`, 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 > 2) {
175
+ if (options.length > 2 || category.length > 8) {
172
176
  yield packageData;
173
177
  }
174
178