Skip to content
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

Use circuitv2 code #1183

Merged
merged 6 commits into from
Sep 10, 2021
Merged

Use circuitv2 code #1183

merged 6 commits into from
Sep 10, 2021

Conversation

vyzo
Copy link
Contributor

@vyzo vyzo commented Sep 10, 2021

This uses the (backwards compatible) circuit v2 client for handling relay connections.

Relay options are removed; relay servers should be explicitly instantiated or use a dedicated daemon (e.g. p2pd or relayd).
Also moves the circuitv2 code into p2p/protocol (see #1177)

} else {
_ = relay.NewAutoRelay(ctx, h, discovery, router, cfg.StaticRelays)
}
_ = relay.NewAutoRelay(ctx, h, discovery, router, cfg.StaticRelays)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this. This will make it a lot easier to implement a Close method here, and not rely on the ctx any more.

@marten-seemann marten-seemann merged commit 79d9954 into master Sep 10, 2021
@vyzo vyzo deleted the feat/use-circuitv2 branch September 14, 2021 09:47
@aschmahmann aschmahmann mentioned this pull request Dec 1, 2021
80 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants