Skip to content

Commit

Permalink
fixup! fix(network): Connection should have negotiated remoteAddress …
Browse files Browse the repository at this point in the history
…and localAddress
  • Loading branch information
0xpatrickdev committed Apr 2, 2024
1 parent 148ebf2 commit 745697a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/network/src/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,8 @@ const prepareBinder = (zone, powers) => {
{ handler: rchandler, remoteAddress, localAddress },
watchContext,
) {
const { lastFailure, lchandler, port } = watchContext;
const { lastFailure, lchandler, localAddr, remoteAddr, port } =
watchContext;

const { currentConnections } = this.state;

Expand All @@ -981,11 +982,11 @@ const prepareBinder = (zone, powers) => {
/** @type {import('@agoric/vow').Remote<Required<ConnectionHandler>>} */ (
lchandler
),
localAddress,
localAddress || localAddr,
/** @type {import('@agoric/vow').Remote<Required<ConnectionHandler>>} */ (
rchandler
),
remoteAddress,
remoteAddress || remoteAddr,
makeConnection,
current,
)[0];
Expand Down

0 comments on commit 745697a

Please sign in to comment.