Skip to content

Commit 3ec28af

Browse files
author
Alan Shaw
committed
feat: support passing profile init option
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
1 parent fb4d51b commit 3ec28af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ipfsd-daemon.js

+4
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ class Daemon {
174174
args.push('--pass')
175175
args.push('"' + initOptions.pass + '"')
176176
}
177+
if (initOptions.profile) {
178+
args.push('-p')
179+
args.push(initOptions.profile)
180+
}
177181
run(this, args, { env: this.env }, (err, result) => {
178182
if (err) {
179183
return callback(err)

0 commit comments

Comments
 (0)