pmcf 2.59.4 → 2.59.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/kea.mjs +3 -3
package/package.json
CHANGED
package/src/services/kea.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { FileContentProvider } from "npm-pkgbuild";
|
|
|
3
3
|
import { reverseArpa } from "ip-utilties";
|
|
4
4
|
import {
|
|
5
5
|
Service,
|
|
6
|
-
|
|
6
|
+
sortDescendingByPriority,
|
|
7
7
|
ServiceTypeDefinition,
|
|
8
8
|
Endpoint,
|
|
9
9
|
UnixEndpoint,
|
|
@@ -162,10 +162,10 @@ export class KeaService extends Service {
|
|
|
162
162
|
const peers = async family =>
|
|
163
163
|
(
|
|
164
164
|
await Array.fromAsync(
|
|
165
|
-
network.findServices({ type: "dhcp", priority: ">=
|
|
165
|
+
network.findServices({ type: "dhcp", priority: ">=" + (this.priority < 100 ? this.priority : 100) })
|
|
166
166
|
)
|
|
167
167
|
)
|
|
168
|
-
.sort(
|
|
168
|
+
.sort(sortDescendingByPriority)
|
|
169
169
|
.map((dhcp, i) => {
|
|
170
170
|
const ctrlAgentEndpoint = dhcp.endpoint(
|
|
171
171
|
e =>
|