pmcf 6.32.4 → 6.32.6
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/bind.mjs +2 -21
package/package.json
CHANGED
package/src/services/bind.mjs
CHANGED
|
@@ -645,13 +645,6 @@ function endpointAddresses(entries) {
|
|
|
645
645
|
return [];
|
|
646
646
|
}
|
|
647
647
|
|
|
648
|
-
/*
|
|
649
|
-
[...this.forwarders]
|
|
650
|
-
.map(e => e.endpoints())
|
|
651
|
-
.flat()
|
|
652
|
-
.filter(e => e.networkAddress)
|
|
653
|
-
.map(e => e.networkAddress?.address);
|
|
654
|
-
*/
|
|
655
648
|
return [...entries]
|
|
656
649
|
.map(e => e.endpoints())
|
|
657
650
|
.flat()
|
|
@@ -781,35 +774,23 @@ export class bind extends CoreService {
|
|
|
781
774
|
groups = new Map();
|
|
782
775
|
|
|
783
776
|
set serverType(value) {
|
|
784
|
-
//console.log("SET SERVERTYPE", this.fullName, value);
|
|
785
777
|
this._serverType = value;
|
|
786
778
|
}
|
|
787
779
|
|
|
788
780
|
get serverType() {
|
|
789
|
-
/*console.log(
|
|
790
|
-
"GET SERVERTYPE",
|
|
791
|
-
this.fullName,
|
|
792
|
-
this._serverType ?? (this.primaries ? "secondary" : "primary")
|
|
793
|
-
);*/
|
|
794
|
-
|
|
795
781
|
return this._serverType ?? (this.primaries ? "secondary" : "primary");
|
|
796
782
|
}
|
|
797
783
|
|
|
798
784
|
async writeForwarders(outputControl) {
|
|
799
785
|
// TODO formulate everything as pacc expression
|
|
800
786
|
|
|
801
|
-
/*
|
|
802
|
-
console.log("F",this.extends);
|
|
803
|
-
console.log("F0",this.fullName);
|
|
804
|
-
console.log("F1",this.forwarders);
|
|
805
|
-
*/
|
|
806
787
|
const forwarders = endpointAddresses(this.forwarders);
|
|
807
|
-
|
|
788
|
+
|
|
808
789
|
if (forwarders.length) {
|
|
809
790
|
await writeLines(
|
|
810
791
|
join(outputControl.dir, "etc/named/options"),
|
|
811
792
|
`forwarders.conf`,
|
|
812
|
-
addressesStatement("forwarders", forwarders)
|
|
793
|
+
addressesStatement("forwarders", forwarders, false, " ")
|
|
813
794
|
);
|
|
814
795
|
|
|
815
796
|
return true;
|