File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ const path = require('path');
66const Corrosion = require ( 'corrosion' ) ;
77const Unblocker = require ( 'unblocker' ) ;
88
9+ const useSSL = false ;
10+ const port = 3000 ;
11+
912const app = express ( ) ;
1013
1114const proxy = new Corrosion ( {
@@ -40,8 +43,6 @@ const unblocker = Unblocker({
4043
4144app . use ( unblocker ) ;
4245
43- const useSSL = false ;
44-
4546let server ;
4647
4748if ( useSSL ) {
@@ -55,8 +56,8 @@ if (useSSL) {
5556 server = http . createServer ( app ) ;
5657}
5758
58- server . listen ( 3000 , ( ) => {
59- console . log ( `Server is listening on port 3000 ${ useSSL ? ' with SSL' : '' } ` ) ;
59+ server . listen ( port , ( ) => {
60+ console . log ( `Server is listening on port ${ port } ${ useSSL ? ' with SSL' : '' } ` ) ;
6061} ) ;
6162
6263server . on ( 'upgrade' , ( request , socket , head ) => {
You can’t perform that action at this time.
0 commit comments