libp2p / libp2p/specs

circuit-v2: Add dialer's multiaddr to StopMessage

Open
#637 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
1.8k
Forks
320
Avg merge
11d 15h
Merged PRs (30d)
1

Description

When making a new connection to a client, the relay server provides the dialer's peer id in the Stop Message.

message StopMessage {
  ...
  optional Peer peer = 2;
  ... other fields
}

If we provide the dialer's address as observed by the relay server, the relay client can gate and limit connections based on the dialer's IP.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the circuit-v2 StopMessage definition and the relay server code that constructs it. Trace how the dialer’s address is observed and represented, then review protocol compatibility expectations. Done means the specification clearly defines the added multiaddr field and how relay clients can use it for connection limits.

Written by the indexing model from the issue text.

Assessment

Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.