Skip to content

Commit

Permalink
exact version number where the behavior changed, ref #4
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong committed May 28, 2015
1 parent ff3e8b4 commit 2a5b0e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/onthefly.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function startServer(handler, whitelist) {

if (contexts[servername]) {
console.log('SNI hit for ' + servername);
// io.js and node v0.10
// io.js and node >= v0.11.5
return shim(contexts[servername]);
} else {
console.log('SNI miss for ' + servername);
Expand All @@ -187,7 +187,7 @@ function startServer(handler, whitelist) {
console.log('Rejected by whitelist function');
}

// node v0.10 mistakenly returns synchronously
// node <= v0.11.4 mistakenly returns synchronously
if ('function' !== typeof cb) {
return shim(defaultContext);
}
Expand Down

0 comments on commit 2a5b0e8

Please sign in to comment.