pmcf 2.11.2 → 2.11.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 +1 -1
- package/src/services/dhcp.mjs +10 -11
package/package.json
CHANGED
package/src/services/dhcp.mjs
CHANGED
|
@@ -143,12 +143,9 @@ export class DHCPService extends Service {
|
|
|
143
143
|
};
|
|
144
144
|
|
|
145
145
|
const dhcpServerDdns = {
|
|
146
|
-
"enable-updates":
|
|
146
|
+
"enable-updates": true,
|
|
147
147
|
"server-ip": "127.0.0.1",
|
|
148
148
|
"server-port": ddns.DhcpDdns.port,
|
|
149
|
-
/*"sender-ip": "",
|
|
150
|
-
"sender-port": 0,
|
|
151
|
-
*/
|
|
152
149
|
"max-queue-size": 64,
|
|
153
150
|
"ncr-protocol": "UDP",
|
|
154
151
|
"ncr-format": "JSON"
|
|
@@ -175,13 +172,15 @@ export class DHCPService extends Service {
|
|
|
175
172
|
}
|
|
176
173
|
}
|
|
177
174
|
|
|
178
|
-
const reservations = [...hwmap]
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
175
|
+
const reservations = [...hwmap]
|
|
176
|
+
.map(([k, networkInterface]) => {
|
|
177
|
+
return {
|
|
178
|
+
"hw-address": k,
|
|
179
|
+
"ip-address": networkInterface.rawIPv4Address,
|
|
180
|
+
hostname: networkInterface.hostName
|
|
181
|
+
};
|
|
182
|
+
})
|
|
183
|
+
.sort((a, b) => a.hostname.localeCompare(b.hostname));
|
|
185
184
|
|
|
186
185
|
const dhcp4 = {
|
|
187
186
|
Dhcp4: {
|