perlin-network / noise

A decentralized P2P networking stack written in Go.
https://godoc.org/github.com/perlin-network/noise
MIT License
1.79k stars 211 forks source link

Update main.go #279

Open venugopv opened 4 years ago

venugopv commented 4 years ago

Adding "ID" to create Node. Without Node having ID, it seems not possible to work with multiple nodes in the same machine.

Faced problems in transferring data using TCP, with the above fix, the issue is gone.

Please let me know for any further clarifications.