Skip to content

Commit 7d5932e

Browse files
author
David Zukowski
authored
fix: https.passphrase option should be respected
serverUtils.getHttpsOptions() was ignoring the `https.passphrase` options since the "default" https options were merged on top of user options. Another solution to this is to just omit the `passphrase` key entirely in the defaults section, but I took this approach in order to preserve the current behavior where it's set to an empty string by default.
1 parent 2191369 commit 7d5932e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/browser-sync/lib/server

packages/browser-sync/lib/server/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function getHttpsServerDefaults(options) {
5454
key: getKey(options),
5555
cert: getCert(options),
5656
ca: getCa(options),
57-
passphrase: ""
57+
passphrase: options.getIn(["https", "passphrase"], "")
5858
});
5959
}
6060

0 commit comments

Comments
 (0)