pmcf 3.8.15 → 3.8.16
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 +3 -3
- package/src/services/kea.mjs +2 -2
- package/src/subnet.mjs +5 -1
- package/types/subnet.d.mts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.16",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"ip-utilties": "^1.4.9",
|
|
55
55
|
"npm-pkgbuild": "^18.2.29",
|
|
56
|
-
"pacc": "^4.
|
|
56
|
+
"pacc": "^4.15.0",
|
|
57
57
|
"package-directory": "^8.1.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"ava": "^6.4.1",
|
|
62
62
|
"c8": "^10.1.3",
|
|
63
63
|
"documentation": "^14.0.3",
|
|
64
|
-
"semantic-release": "^24.2.
|
|
64
|
+
"semantic-release": "^24.2.8",
|
|
65
65
|
"typescript": "^5.9.2"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
package/src/services/kea.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
2
|
import { FileContentProvider } from "npm-pkgbuild";
|
|
3
|
-
import { reverseArpa } from "ip-utilties";
|
|
3
|
+
import { reverseArpa, isLinkLocal } from "ip-utilties";
|
|
4
4
|
import {
|
|
5
5
|
string_attribute_writable,
|
|
6
6
|
number_attribute_writable,
|
|
@@ -442,7 +442,7 @@ export class KeaService extends Service {
|
|
|
442
442
|
Dhcp6: {
|
|
443
443
|
...(await commonConfig("6")),
|
|
444
444
|
subnet6: subnets
|
|
445
|
-
.filter(s => s.family === "IPv6")
|
|
445
|
+
.filter(s => s.family === "IPv6" && !isLinkLocal(s.address))
|
|
446
446
|
.map((subnet, index) => {
|
|
447
447
|
return {
|
|
448
448
|
id: index + 1,
|
package/src/subnet.mjs
CHANGED
|
@@ -49,6 +49,10 @@ export class Subnet extends Base {
|
|
|
49
49
|
owner.addObject(this);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
get cidr() {
|
|
53
|
+
return this.name;
|
|
54
|
+
}
|
|
55
|
+
|
|
52
56
|
get fullName() {
|
|
53
57
|
return this.name;
|
|
54
58
|
}
|
|
@@ -70,7 +74,7 @@ export class Subnet extends Base {
|
|
|
70
74
|
|
|
71
75
|
return [
|
|
72
76
|
this.family === "IPv6"
|
|
73
|
-
? this.
|
|
77
|
+
? this.cidr
|
|
74
78
|
: rangeIP(this.prefix, this.prefixLength, 51, 6).map(a => decodeIP(a))
|
|
75
79
|
];
|
|
76
80
|
}
|