Permalink
Browse files

use http.host for https if not set

  • Loading branch information...
Grigore147 committed Jan 20, 2014
1 parent 19eb59d commit 8826ee84511f3e9c91c09b97cda3d4d0d3980f13
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/katana.js
View
@@ -182,7 +182,7 @@ App.start = function() {
}
if (https) {
- var httpsHost = https.host || '127.0.0.1';
+ var httpsHost = https.host || (http && http.host) || '127.0.0.1';
var httpsPort = https.port || 443;
this.https = Https.createServer({

0 comments on commit 8826ee8

Please sign in to comment.