pmcf 3.4.6 → 3.4.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "3.4.6",
3
+ "version": "3.4.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -106,7 +106,8 @@ export class BindService extends ExtraSourceService {
106
106
  recordTTL = "1W";
107
107
  hasSVRRecords = true;
108
108
  hasCatalog = true;
109
- hasLinkLocalAdresses = BindServiceTypeDefinition.properties.hasLinkLocalAdresses.default;
109
+ hasLinkLocalAdresses =
110
+ BindServiceTypeDefinition.properties.hasLinkLocalAdresses.default;
110
111
  hasLocationRecord = true;
111
112
  notify = true;
112
113
  _addresses = [];
@@ -412,7 +413,16 @@ export class BindService extends ExtraSourceService {
412
413
  ) {
413
414
  addresses.add(address);
414
415
 
415
- let reverseZone = reverseZones.get(subnet.address);
416
+ let reverseZone = reverseZones.get(subnet);
417
+
418
+ // is there already a matching subnet ?
419
+ if (!reverseZone) {
420
+ for (const [presentSubnet, zone] of reverseZones) {
421
+ if (presentSubnet.matchesAddress(subnet.address)) {
422
+ reverseZone = zone;
423
+ }
424
+ }
425
+ }
416
426
 
417
427
  if (!reverseZone) {
418
428
  const id = reverseArpa(subnet.prefix);
@@ -423,7 +433,7 @@ export class BindService extends ExtraSourceService {
423
433
  records: new Set(this.defaultRecords)
424
434
  };
425
435
  config.zones.push(reverseZone);
426
- reverseZones.set(subnet.address, reverseZone);
436
+ reverseZones.set(subnet, reverseZone);
427
437
  }
428
438
 
429
439
  for (const domainName of domainNames) {