Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
merge with sslb tag
  • Loading branch information
nrstott committed Jun 5, 2011
2 parents e8545f2 + 73183f4 commit a8cfb1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions lib/jsgi-node.js
Expand Up @@ -232,12 +232,13 @@ function start( app, options ) {
app = new Listener( app ); app = new Listener( app );
options = options || {}; options = options || {};


var port = options.port || 8080; var port = options.port || 8080,
http;


if (options.ssl) { if ( options.ssl ) {
require( "https" ).createServer(options.ssl, app).listen(port); http = require( "https" ).createServer( options.ssl, app ).listen( port );
} else { } else {
require( "http" ).createServer( app ).listen( port ); http = require( "http" ).createServer( app ).listen( port );
} }


sys.puts( "Server running on port " + port ); sys.puts( "Server running on port " + port );
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{ {
"name": "jsgi", "name": "jsgi",
"version": "0.0.1", "version": "0.2.4ssl",
"directories": { "lib": "./lib" }, "directories": { "lib": "./lib" },
"main": "./lib/jsgi-node", "main": "./lib/jsgi-node",
"author": "Kris Zyp" "author": "Kris Zyp"
Expand Down

0 comments on commit a8cfb1d

Please sign in to comment.