pmcf 2.71.12 → 2.71.14
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 +2 -2
- package/src/services/chrony.mjs +6 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "2.71.
|
|
3
|
+
"version": "2.71.14",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"ip-utilties": "^1.4.7",
|
|
54
|
-
"npm-pkgbuild": "^18.2.
|
|
54
|
+
"npm-pkgbuild": "^18.2.12",
|
|
55
55
|
"pacc": "^3.4.7",
|
|
56
56
|
"pkg-dir": "^8.0.0"
|
|
57
57
|
},
|
package/src/services/chrony.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
2
|
import { FileContentProvider } from "npm-pkgbuild";
|
|
3
|
+
import { isLinkLocal } from "ip-utilties";
|
|
4
|
+
|
|
3
5
|
import { addType } from "../types.mjs";
|
|
4
6
|
import {
|
|
5
7
|
Service,
|
|
@@ -92,20 +94,19 @@ export class ChronyService extends ExtraSourceService {
|
|
|
92
94
|
...serviceEndpoints(this, {
|
|
93
95
|
services: {
|
|
94
96
|
types: "ntp",
|
|
95
|
-
priority: ">=
|
|
97
|
+
priority: ">=100"
|
|
96
98
|
},
|
|
97
99
|
endpoints: e =>
|
|
98
100
|
e.type === "ntp" &&
|
|
101
|
+
!isLinkLocal(e.address) &&
|
|
99
102
|
e.service.host !== host &&
|
|
100
103
|
e.networkInterface?.kind !== "loopback",
|
|
101
104
|
|
|
102
105
|
select: endpoint =>
|
|
103
|
-
`${endpoint.isPool ? "pool" : "server"} ${endpoint.address} iburst
|
|
104
|
-
|
|
105
|
-
limit: 7
|
|
106
|
+
`${endpoint.isPool ? "pool" : "server"} ${endpoint.address} iburst`
|
|
106
107
|
}),
|
|
107
108
|
`mailonchange ${this.administratorEmail} 0.5`,
|
|
108
|
-
"local stratum 10",
|
|
109
|
+
"local stratum 10 orphan",
|
|
109
110
|
"leapsectz right/UTC",
|
|
110
111
|
"makestep 1.0 3",
|
|
111
112
|
"ratelimit interval 3 burst 8",
|