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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "2.11.2",
3
+ "version": "2.11.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -143,12 +143,9 @@ export class DHCPService extends Service {
143
143
  };
144
144
 
145
145
  const dhcpServerDdns = {
146
- "enable-updates": false,
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].map(([k, networkInterface]) => {
179
- return {
180
- "hw-address": k,
181
- "ip-address": networkInterface.rawAddress,
182
- hostname: networkInterface.hostName
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: {