pmcf 1.80.0 → 1.80.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/dns.mjs +10 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "1.80.0",
3
+ "version": "1.80.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/dns.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  normalizeIPAddress,
8
8
  isLinkLocal
9
9
  } from "./utils.mjs";
10
- import { DNSRecord, dnsFullName, dnsFormatParameters } from "./dns-utils.mjs";
10
+ import { DNSRecord, dnsFullName } from "./dns-utils.mjs";
11
11
  import { Base } from "./base.mjs";
12
12
  import { addType } from "./types.mjs";
13
13
  import { serviceAddresses } from "./service.mjs";
@@ -197,10 +197,15 @@ async function generateZoneDefs(dns, targetDir) {
197
197
 
198
198
  let maxKeyLength;
199
199
 
200
- for (const mail of dns.owner.findServices({ type: "smtp", priority: "<10" })) {
201
- records.add(
202
- DNSRecord("@", "MX", mail.priority, dnsFullName(mail.domainName))
203
- );
200
+ if (isLocalDomain) {
201
+ for (const mail of dns.owner.findServices({
202
+ type: "smtp",
203
+ priority: "<10"
204
+ })) {
205
+ records.add(
206
+ DNSRecord("@", "MX", mail.priority, dnsFullName(mail.domainName))
207
+ );
208
+ }
204
209
  }
205
210
 
206
211
  console.log(`${nameService} ${domain}`, nameService.ipAddressOrDomainName);