-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
add ipv6-only mode #7786
Comments
I don't see a particularly strong reason to do this with go-ipfs as a binary since it's basically just for testing and could lead to adverse effects on the public DHT if users ran their nodes in "auto" (the default) or "server" modes and would likely lead to poorer public DHT lookups in all modes including "client". However, libp2p already supports doing this via announce addresses + connection gating so if you'd like to do this using go-ipfs as a library you already can. If you do so I highly recommend doing one of :
|
You can do this by:
|
thanks for the hint - that's what i've basically done. also, one needs to change the api and gateway listen addresses... but all in all, it's quite cumbersome and somewhat error prone. also, a "quick switch" is only achieved only by having two configs with lots of duplicate settings and switching between them back and forth. but i also understand that such feature (command line option to turn off ipv4 completely) may be not interesting for most ipfs users and could end up being a feature creep... ...so, you decide. ;-) |
Yeah. Unfortunately, this is a really edge-case feature that's not too difficult to achieve otherwise. If you wanted to test IPFS without IPv4, I'd recommend just disabling IPv4 at the OS level. In terms of NATs... unfortunately I'm pretty sure most NATs will track IPv6 connections anyways. |
one thing I will mention is that some IP providers have started sharding individual IPv4 addresses into hundreds of shards, giving each internet customer only about 200 ports. this means that if your running IPFS or another P2P service on a network subject to this type of restriction, IPFS will consume all available IPv4 ports and cause the internet connection to be unstable. |
It probably doesn't justify the complexity of "profiles" in the CID sense, but couldn't libp2p implement some kind of config flags that could be inherited by kubo? |
this would:
The text was updated successfully, but these errors were encountered: