Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Feb 24, 2024
1 parent c4ec184 commit aa0044f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/initipfs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ func updateDatastorePath(ipfsCfg *IPFSConfig, newPath string) {
// Update the path to the new specified path
ipfsCfg.Addresses.Gateway = "/ip4/127.0.0.1/tcp/8081"
}
if ipfsCfg.Addresses.Gateway != "" {
// Update the path to the new specified path
ipfsCfg.Addresses.API = "/ip4/0.0.0.0/tcp/5001"
}
}

func generatePeerIDFromIdentity(identity string) string {
Expand Down

0 comments on commit aa0044f

Please sign in to comment.