Skip to content

feat(DHT): naive ip checking on wss connection #3033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

juslesan
Copy link
Contributor

@juslesan juslesan commented Mar 4, 2025

Summary

WebSocket servers will reject connections if the advertised IP in the PeerDescriptor does not match the remote address. This change makes it impossible for nodes to initially connect to the network if they are

Open Questions

This could have unwanted effects on nodes that change their IP while running. For example, the computer running a node switches from one wifi connection to another.

Future improvements

  • Add signatures for IP checking
  • Validate a node's ID based on the remote IP

@github-actions github-actions bot added the dht Related to DHT package label Mar 4, 2025
@github-actions github-actions bot added network Related to Network Package sdk node labels Mar 4, 2025
@github-actions github-actions bot added the Stale label May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dht Related to DHT package network Related to Network Package node sdk Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant