Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Fix Peer object string address - Closes #2964 #2966

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

2snEM6
Copy link
Contributor

@2snEM6 2snEM6 commented Feb 25, 2019

What was the problem?

Peers are being stringified to for example [object Object]:7001 and SocketCluster is crashing because of it.

How did I fix it?

address needed to be destructured
const { address } = await lookupPromise(peer.ip, { family: 4 });

How to test it?

Run the application and it shouldn't crash anymore

Review checklist

@MaciejBaj MaciejBaj merged commit 8d62217 into development Feb 25, 2019
@shuse2 shuse2 deleted the 2964-peer_object_incorrectly_stringified branch April 3, 2019 06:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Peer objects are not being converted to string correctly
2 participants