mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 09:52:20 +08:00
fix panic caused by accessing config after repo closed
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
@ -11,7 +11,11 @@ import (
|
||||
|
||||
// Mount mounts ipns at a given location, and returns a mount.Mount instance.
|
||||
func Mount(ipfs *core.IpfsNode, ipnsmp, ipfsmp string) (mount.Mount, error) {
|
||||
cfg := ipfs.Repo.Config()
|
||||
cfg, err := ipfs.Repo.Config()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
allow_other := cfg.Mounts.FuseAllowOther
|
||||
|
||||
if ipfs.IpnsFs == nil {
|
||||
|
Reference in New Issue
Block a user