-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Support relay and hop as "config" options like Go #2667
Comments
I have started a little research and I have realized that Just as we did with go-ipfs, go ahead and edit js-ipfs config file located under ~/.jsipfs/config. Let's add the following config:
"relay": {
"enabled": true,
"hop": {
"enabled": true
}
} And I got same conclusion after reading this code in core->component->libp2p relay: {
enabled: get(options, 'relay.enabled',
get(config, 'relay.enabled', true)),
hop: {
enabled: get(options, 'relay.hop.enabled',
get(config, 'relay.hop.enabled', false)),
active: get(options, 'relay.hop.active',
get(config, 'relay.hop.active', false))
}
}, Aiming the best compatibility across both projects, "Swarm": {
"DisableRelay": false,
"EnableRelayHop": true,
"EnableAutoRelay": false,
...
} And therefore this issue will also involve an update of the
|
@ggarri first thank you for tackling this!! |
License: MIT Signed-off-by: ggarri <[email protected]>
Sounds good. I think if someone's gone to the trouble of passing constructor args in, they should override passively detected settings. |
js-ipfs is being deprecated in favor of Helia. You can learn more about this deprecation and read the migration guide. Please feel to reopen with any comments by 2023-06-02. We will do a final pass on reopened issues afterwards (see #4336). |
Type: Enhancement
Severity: High
Description:
Correctly we dont support enabling relay and hop using the config like go https://github.com/ipfs/go-ipfs/blob/master/docs/config.md#swarm so we when using the CLI there’s no way to run a js daemon as a relay.
Steps to reproduce the error:
The text was updated successfully, but these errors were encountered: