Skip to content

Conversation

ming-codes
Copy link
Contributor

A simple change to make secured web socket connections respect options.secure. Before, this was throwing [Error: Hostname/IP doesn't match certificate's altnames]

@jcrugzz
Copy link
Contributor

jcrugzz commented Nov 4, 2014

@Lightblade LGTM. Mind if you implement it like the one above? just makes it a bit shorter and cleaner :)

e.g ~['https:', 'wss:'].indexOf(options[forward || 'target'].protocol will be true if we are dealing with SSL

@ming-codes
Copy link
Contributor Author

Sure. Amended the commit.

@jcrugzz
Copy link
Contributor

jcrugzz commented Nov 4, 2014

Thanks!

jcrugzz added a commit that referenced this pull request Nov 4, 2014
websocket needs to respect `options.secure` too
@jcrugzz jcrugzz merged commit 57329b6 into http-party:master Nov 4, 2014
@jcrugzz
Copy link
Contributor

jcrugzz commented Nov 4, 2014

@Lightblade published as 1.6.1

@ming-codes
Copy link
Contributor Author

Great! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants