pmcf 2.59.1 → 2.59.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "2.59.
|
|
3
|
+
"version": "2.59.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"ip-utilties": "^1.4.
|
|
48
|
+
"ip-utilties": "^1.4.2",
|
|
49
49
|
"npm-pkgbuild": "^18.2.8",
|
|
50
50
|
"pacc": "^3.4.3",
|
|
51
51
|
"pkg-dir": "^8.0.0"
|
package/src/services/kea.mjs
CHANGED
|
@@ -354,18 +354,19 @@ export class KeaService extends Service {
|
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
-
const reservations =
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
357
|
+
const reservations = family =>
|
|
358
|
+
[...hwmap]
|
|
359
|
+
.map(([k, networkInterface]) => {
|
|
360
|
+
return {
|
|
361
|
+
"hw-address": k,
|
|
362
|
+
"ip-address": networkInterface.networkAddress(
|
|
363
|
+
n => n.family === `IPv${family}`
|
|
364
|
+
)?.address,
|
|
365
|
+
hostname: networkInterface.domainName,
|
|
366
|
+
"client-classes": ["SKIP_DDNS"]
|
|
367
|
+
};
|
|
368
|
+
})
|
|
369
|
+
.sort((a, b) => a.hostname.localeCompare(b.hostname));
|
|
369
370
|
|
|
370
371
|
const listenInterfaces = family =>
|
|
371
372
|
this.endpoints(
|
|
@@ -399,7 +400,7 @@ export class KeaService extends Service {
|
|
|
399
400
|
data: network.gateway.address
|
|
400
401
|
}
|
|
401
402
|
],
|
|
402
|
-
reservations
|
|
403
|
+
reservations: reservations("4")
|
|
403
404
|
};
|
|
404
405
|
})
|
|
405
406
|
}
|
|
@@ -424,12 +425,7 @@ export class KeaService extends Service {
|
|
|
424
425
|
"delegated-len": 64
|
|
425
426
|
}
|
|
426
427
|
],*/
|
|
427
|
-
reservations:
|
|
428
|
-
/*{
|
|
429
|
-
duid: "01:02:03:04:05:0A:0B:0C:0D:0E",
|
|
430
|
-
"ip-addresses": ["2001:db8:1::100"]
|
|
431
|
-
}*/
|
|
432
|
-
]
|
|
428
|
+
reservations: reservations("6")
|
|
433
429
|
};
|
|
434
430
|
})
|
|
435
431
|
}
|
|
@@ -7,7 +7,9 @@ const SystemdJournalUploadServiceTypeDefinition = {
|
|
|
7
7
|
owners: ServiceTypeDefinition.owners,
|
|
8
8
|
extends: ServiceTypeDefinition,
|
|
9
9
|
priority: 0.1,
|
|
10
|
-
properties: {
|
|
10
|
+
properties: {
|
|
11
|
+
url: { type: "string", collection: false, writeable: true }
|
|
12
|
+
}
|
|
11
13
|
};
|
|
12
14
|
|
|
13
15
|
export class SystemdJournalUploadService extends Service {
|
|
@@ -37,7 +39,7 @@ export class SystemdJournalUploadService extends Service {
|
|
|
37
39
|
serviceName: "systemd-journal-upload",
|
|
38
40
|
configFileName: `etc/systemd/journal-upload.conf.d/${name}.conf`,
|
|
39
41
|
content: ["Upload", {
|
|
40
|
-
URL :
|
|
42
|
+
URL : this.url
|
|
41
43
|
}]
|
|
42
44
|
};
|
|
43
45
|
}
|
|
@@ -53,7 +53,7 @@ export class SystemdResolvedService extends ExtraSourceService {
|
|
|
53
53
|
content: [
|
|
54
54
|
"Resolve",
|
|
55
55
|
{
|
|
56
|
-
DNS: serviceEndpoints(this, options("
|
|
56
|
+
DNS: serviceEndpoints(this, options("[300:399]", 4)),
|
|
57
57
|
FallbackDNS: serviceEndpoints(this, options("[100:199]", 4)),
|
|
58
58
|
Domains: [...this.localDomains].join(" "),
|
|
59
59
|
DNSSEC: "no",
|
|
@@ -241,7 +241,13 @@ export class SystemdJournalUploadService extends Service {
|
|
|
241
241
|
};
|
|
242
242
|
};
|
|
243
243
|
priority: number;
|
|
244
|
-
properties: {
|
|
244
|
+
properties: {
|
|
245
|
+
url: {
|
|
246
|
+
type: string;
|
|
247
|
+
collection: boolean;
|
|
248
|
+
writeable: boolean;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
245
251
|
};
|
|
246
252
|
get type(): string;
|
|
247
253
|
get systemdServices(): string;
|
|
@@ -249,7 +255,7 @@ export class SystemdJournalUploadService extends Service {
|
|
|
249
255
|
serviceName: string;
|
|
250
256
|
configFileName: string;
|
|
251
257
|
content: (string | {
|
|
252
|
-
URL:
|
|
258
|
+
URL: any;
|
|
253
259
|
})[];
|
|
254
260
|
};
|
|
255
261
|
}
|