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
|
@@ -101,9 +101,12 @@ export class NetworkInterface extends SkeletonNetworkInterface {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
get gatewayAddress() {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
? {
|