pmcf 2.59.2 → 2.59.4

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.2",
3
+ "version": "2.59.4",
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.1",
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/cluster.mjs CHANGED
@@ -85,7 +85,6 @@ export class Cluster extends Host {
85
85
  }
86
86
  };
87
87
 
88
-
89
88
  const cfg = [
90
89
  "global_defs {",
91
90
  " notification_email {",
@@ -118,7 +117,7 @@ export class Cluster extends Host {
118
117
  cfg.push(" }");
119
118
  cfg.push(` virtual_router_id ${cluster.routerId}`);
120
119
  cfg.push(
121
- ` priority ${host.priority - 100 + (cluster.masters.has(ni) ? 0 : 5)}`
120
+ ` priority ${host.priority + (cluster.masters.has(ni) ? 0 : 5)}`
122
121
  );
123
122
  cfg.push(" smtp_alert");
124
123
  cfg.push(" advert_int 5");
@@ -162,7 +162,7 @@ export class KeaService extends Service {
162
162
  const peers = async family =>
163
163
  (
164
164
  await Array.fromAsync(
165
- network.findServices({ type: "dhcp", priority: ">=200" })
165
+ network.findServices({ type: "dhcp", priority: ">=100" })
166
166
  )
167
167
  )
168
168
  .sort(sortAscendingByPriority)