pmcf 3.8.17 → 3.8.18

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": "3.8.17",
3
+ "version": "3.8.18",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -101,9 +101,12 @@ export class NetworkInterface extends SkeletonNetworkInterface {
101
101
  }
102
102
 
103
103
  get gatewayAddress() {
104
- for (const a of this.gateway.networkAddresses()) {
105
- if (a.networkInterface.network === this.network) {
106
- return a.address;
104
+ const gateway = this.gateway;
105
+ if (gateway) {
106
+ for (const a of gateway.networkAddresses()) {
107
+ if (a.networkInterface.network === this.network) {
108
+ return a.address;
109
+ }
107
110
  }
108
111
  }
109
112
  }
@@ -208,7 +211,7 @@ export class NetworkInterface extends SkeletonNetworkInterface {
208
211
 
209
212
  const routeSectionExtra = this.destination
210
213
  ? { Destination: this.destination }
211
- : { Gateway: this.gatewayAddress };
214
+ : this.gateway ? { Gateway: this.gatewayAddress } : {};
212
215
 
213
216
  const networkSectionExtra = this.arpbridge
214
217
  ? {
@@ -23,4 +23,6 @@ export class TUNNetworkInterface extends NetworkInterface {
23
23
  get kind() {
24
24
  return TUNdNetworkInterfaceTypeDefinition.name;
25
25
  }
26
+
27
+ async systemdDefinitions(packageData) {}
26
28
  }