pmcf 6.53.1 → 6.53.3
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 +2 -2
- package/src/services/bind.mjs +15 -4
- package/src/services/kea.mjs +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "6.53.
|
|
3
|
+
"version": "6.53.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"yaml": "^2.9.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@types/node": "^26.
|
|
62
|
+
"@types/node": "^26.6.1",
|
|
63
63
|
"ava": "^8.0.1",
|
|
64
64
|
"c8": "^12.0.0",
|
|
65
65
|
"documentation": "^14.0.3",
|
package/src/services/bind.mjs
CHANGED
|
@@ -16,7 +16,8 @@ import {
|
|
|
16
16
|
integer_attribute_writable,
|
|
17
17
|
integer_attribute,
|
|
18
18
|
secret_attribute_writable,
|
|
19
|
-
asArray
|
|
19
|
+
asArray,
|
|
20
|
+
leafValues
|
|
20
21
|
} from "pacc";
|
|
21
22
|
import {
|
|
22
23
|
base,
|
|
@@ -858,15 +859,25 @@ export class bind extends CoreService {
|
|
|
858
859
|
}
|
|
859
860
|
|
|
860
861
|
async writeServers(outputControl) {
|
|
862
|
+
|
|
863
|
+
// TODO
|
|
864
|
+
const all = new Map();
|
|
865
|
+
for (const service of this.primaries) {
|
|
866
|
+
for (const subnet of service.host.network.subnets.values()) {
|
|
867
|
+
//console.log("SA", subnet.fullName);
|
|
868
|
+
all.set(subnet.address, service);
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
861
872
|
await writeLines(
|
|
862
873
|
join(outputControl.dir, "etc/named"),
|
|
863
874
|
`servers.conf`,
|
|
864
|
-
|
|
875
|
+
all.entries().map(([subnet, service]) => {
|
|
865
876
|
return [
|
|
866
|
-
`server ${
|
|
877
|
+
`server ${subnet} {`,
|
|
867
878
|
" keys {" +
|
|
868
879
|
asArray(service.keys.values())
|
|
869
|
-
|
|
880
|
+
.filter(key => key.tags.has("server"))
|
|
870
881
|
.map(key => ` ${key.name};`)
|
|
871
882
|
.join("") +
|
|
872
883
|
" };",
|
package/src/services/kea.mjs
CHANGED
|
@@ -185,6 +185,7 @@ export class kea extends CoreService {
|
|
|
185
185
|
endpoint =>
|
|
186
186
|
endpoint.type === "dhcp" &&
|
|
187
187
|
endpoint.family === family &&
|
|
188
|
+
endpoint.networkInterface.enabled &&
|
|
188
189
|
endpoint.networkInterface.kind !== "loopback" &&
|
|
189
190
|
endpoint.networkInterface.kind !== "tun"
|
|
190
191
|
).map(endpoint => `${endpoint.networkInterface.name}/${endpoint.address}`);
|