-
Notifications
You must be signed in to change notification settings - Fork 489
Closed
Labels
P2Medium: Good to have, but can wait until someone steps upMedium: Good to have, but can wait until someone steps upkind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)
Description
- Version: *
- Platform: *
- Subsystem: transport, dialer
Type: question
Severity: low
Description: Should a node be able to dial itself?
Steps to reproduce the error:
- Create a node and start it
node.dial(node.peerInfo, () => {}
Currently a node is able to dial itself.
Problem:
- What if there are 2 nodes with the same peer-id because someone messed something up... should it only allow dials from and to itself or from any node that has it's id
- It might be useful for debugging but I don't see any real-world use case where this makes sense (maybe hide it behind a flag like
allowDialToSelf
)
Metadata
Metadata
Assignees
Labels
P2Medium: Good to have, but can wait until someone steps upMedium: Good to have, but can wait until someone steps upkind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)