pmcf 6.50.3 → 6.51.0
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/kea.mjs +17 -2
package/package.json
CHANGED
package/src/services/kea.mjs
CHANGED
|
@@ -20,7 +20,8 @@ import {
|
|
|
20
20
|
Subnet,
|
|
21
21
|
CoreService,
|
|
22
22
|
Endpoint,
|
|
23
|
-
sortDescendingByPriority
|
|
23
|
+
sortDescendingByPriority,
|
|
24
|
+
bind_key
|
|
24
25
|
} from "pmcf";
|
|
25
26
|
import { FAMILY_UNIX, PROTOCOL_TCP } from "../constants.mjs";
|
|
26
27
|
import { writeLines } from "../utils.mjs";
|
|
@@ -53,6 +54,12 @@ export class kea extends CoreService {
|
|
|
53
54
|
name: "peers",
|
|
54
55
|
deferredExpression: true
|
|
55
56
|
},
|
|
57
|
+
keys: {
|
|
58
|
+
...default_collection_attribute_writable,
|
|
59
|
+
name: "keys",
|
|
60
|
+
type: bind_key,
|
|
61
|
+
deferredExpression: true
|
|
62
|
+
},
|
|
56
63
|
dnsServerEndpoints: {
|
|
57
64
|
...default_collection_attribute_writable,
|
|
58
65
|
type: Endpoint,
|
|
@@ -347,7 +354,15 @@ export class kea extends CoreService {
|
|
|
347
354
|
"ip-address": ddnsEndpoint.address,
|
|
348
355
|
port: ddnsEndpoint.port,
|
|
349
356
|
"control-socket": toSocket(this.endpoint("kea-control-ddns")),
|
|
350
|
-
"tsig-keys": [
|
|
357
|
+
"tsig-keys": [
|
|
358
|
+
asArray(this.keys).map(key => {
|
|
359
|
+
return {
|
|
360
|
+
name: key.name,
|
|
361
|
+
algorithm: key.algorithm,
|
|
362
|
+
secret: key.secret
|
|
363
|
+
};
|
|
364
|
+
})
|
|
365
|
+
],
|
|
351
366
|
"forward-ddns": {
|
|
352
367
|
"ddns-domains": dnsServersSlot([...this.domains])
|
|
353
368
|
},
|