pmcf 5.0.0 → 5.0.1

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": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -6,7 +6,8 @@ export class ethernet extends NetworkInterface {
6
6
  static attributes = {
7
7
  arpbridge: {
8
8
  ...networkInterfaces_attribute,
9
- name: "arpbridge"
9
+ name: "arpbridge",
10
+ description: "bridged interfaces"
10
11
  }
11
12
  };
12
13
 
@@ -206,7 +206,7 @@ export class NetworkInterface extends SkeletonNetworkInterface {
206
206
  ? { Gateway: this.gatewayAddress }
207
207
  : {};
208
208
 
209
- const networkSectionExtra = this.arpbridge
209
+ const networkSectionExtra = this.arpbridge?.size
210
210
  ? {
211
211
  IPForward: "yes",
212
212
  IPv4ProxyARP: "yes"
@@ -240,7 +240,7 @@ export class NetworkInterface extends SkeletonNetworkInterface {
240
240
  })
241
241
  );
242
242
 
243
- if (this.arpbridge) {
243
+ if (this.arpbridge?.size) {
244
244
  networkSections.push("", sectionLines("Link", { Promiscuous: "yes" }));
245
245
  }
246
246