-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Config option for disabling NAT discovery #2964
Comments
This should be pretty easy to do, should probably go under the It needs to pass an option to the host construction method so that it can pass or not pass an option to the basichost.New here: https://github.com/ipfs/go-ipfs/blob/master/core/core.go#L731 Instead of passing a bool for 'NatPortMap' to this method with already way too many parameters, lets add an options struct as a parameter that we can extend later with more of these tweaks. |
where would be a good place to do this? at the moment is is non obvious. |
in repo/fsrepo/serialize/serialize.go, at the bottom in the Youre right, this is non-obvious, we should document it a bit while we're at it |
Okay will do, It looks like this will be the first time we used a default value other than the go default of False, 0, or the empty string. |
Yeah, i don't think we knew how to do this before, otherwise the |
So it turned out is was not sufficient to set the defaults in just the |
We have this now, #3798 was merged The config option is |
Awesome, thanks so much :D |
In some locations (e.g. datacenters) you don't need NAT discovery. Sometimes it'll take its full couple of seconds though! If we can disable that, restarts of the daemon will be faster.
The text was updated successfully, but these errors were encountered: