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

feat: default swarm port #160

Merged
merged 1 commit into from
Nov 1, 2023
Merged

feat: default swarm port #160

merged 1 commit into from
Nov 1, 2023

Conversation

AaronGoldman
Copy link
Contributor

CERAMIC_ONE_SWARM_ADDRESSES default_values port 4001

@AaronGoldman AaronGoldman changed the title default swarm port Feat: default swarm port Oct 30, 2023
one/src/main.rs Outdated
@@ -61,7 +61,7 @@ struct DaemonOpts {
/// Listen address of the p2p swarm.
#[arg(
long,
default_values_t = vec!["/ip4/0.0.0.0/tcp/0".to_string(), "/ip4/0.0.0.0/udp/0/quic-v1".to_string()],
default_values_t = vec!["/ip4/0.0.0.0/tcp/4001".to_string(), "/ip4/0.0.0.0/udp/4001/quic-v1".to_string()],
Copy link
Member

Choose a reason for hiding this comment

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

Can we run both tcp and quic on a single port?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes they are TCP vs UDP and so can use the same port number.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks, I was suspecting this but wasn't sure!

Copy link
Collaborator

@nathanielc nathanielc left a comment

Choose a reason for hiding this comment

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

LGTM, we may need to watch out for any testing code that relied on the fact it would always pick an open port. But all the code I am aware of was explicit so it should be fine.

one/src/main.rs Outdated
@@ -61,7 +61,7 @@ struct DaemonOpts {
/// Listen address of the p2p swarm.
#[arg(
long,
default_values_t = vec!["/ip4/0.0.0.0/tcp/0".to_string(), "/ip4/0.0.0.0/udp/0/quic-v1".to_string()],
default_values_t = vec!["/ip4/0.0.0.0/tcp/4001".to_string(), "/ip4/0.0.0.0/udp/4001/quic-v1".to_string()],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes they are TCP vs UDP and so can use the same port number.

@AaronGoldman AaronGoldman changed the title Feat: default swarm port feat: default swarm port Oct 30, 2023
@AaronGoldman AaronGoldman force-pushed the feat/p2p-swarm-listen-port branch from 98e2b9b to 7c24430 Compare October 30, 2023 19:19
@AaronGoldman AaronGoldman added this pull request to the merge queue Oct 30, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 30, 2023
CERAMIC_ONE_SWARM_ADDRESSES default_values port 4001
@AaronGoldman AaronGoldman force-pushed the feat/p2p-swarm-listen-port branch from 7c24430 to 370cbcf Compare November 1, 2023 20:02
@AaronGoldman AaronGoldman added this pull request to the merge queue Nov 1, 2023
Merged via the queue into main with commit 1318edd Nov 1, 2023
4 checks passed
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.

3 participants